You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by GitBox <gi...@apache.org> on 2019/08/28 14:53:00 UTC

[GitHub] [cayenne] stariy95 opened a new pull request #403: CAY-2565 New PK properties

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