RE: Expression chains

From: Cris Daniluk (cris.danilu..laraview.com)
Date: Wed Feb 16 2005 - 17:17:41 EST

  • Next message: Mike Kienenberger: "Optimistic locking on delete: appendOptimisticLockingAttributes calls getRetainedSnapshot() but may be null for simple deleteObject()"

    >
    > import org.apache.commons.lang.StringUtils; // cayenne dependency
    >
    > ExpressionFactory.matchExp(StringUtils.join(String[] {
    > MUSEUM.TO_PAINTING_PROPERTY, PAINTING.TO_ARTIST_PROPERTY,
    > ARTIST.ARTIST_NAME_PROPERTY }, '.'), "Monet");
    >
    >

    We do this now. Just seems syntactically unpure.

    Cayenne keeps the burden of string literals away from you pretty much
    everywhere but right here. Would be nice to make the concept transparent to
    the users I think.



    This archive was generated by hypermail 2.0.0 : Wed Feb 16 2005 - 17:17:40 EST