cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [cayenne] stariy95 opened a new pull request #403: CAY-2565 New PK properties
Date Wed, 28 Aug 2019 14:53:00 GMT
stariy95 opened a new pull request #403:  CAY-2565 New PK properties
URL: https://github.com/apache/cayenne/pull/403
 
 
   This PR introduces new expression: `dbid:path`. It's essentially a combination of Obj path
and DB path. This allows using special properties for primary keys in all places where properties
for object attributes can be used without mapping them explicitly.
   
   Example:
   ```java
   ObjectSelect.query(Painting.class)
           .orderBy(Painting.TO_ARTIST.dot(Artist.ARTIST_ID_PK_PROPERTY).asc())
           .select(context);
   
   Artist.PAINTING_ARRAY.dot(Painting.PAINTING_ID_PK_PROPERTY).gt(13)
           .filterObjects(artists);
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message