[ https://issues.apache.org/jira/browse/CAY-2507?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16734014#comment-16734014 ]
ASF GitHub Bot commented on CAY-2507: ------------------------------------- Github user asfgit closed the pull request at: https://github.com/apache/cayenne/pull/357 > Property api to add aliases > --------------------------- > > Key: CAY-2507 > URL: https://issues.apache.org/jira/browse/CAY-2507 > Project: Cayenne > Issue Type: Improvement > Components: Core Library > Affects Versions: 4.2.M1 > Reporter: Arseni Bulatski > Priority: Major > Labels: pull-request-available > Fix For: 4.2.M1 > > > Add method to create aliases for properties. > Cab be used in qualifiers to have several joins to one table, in orderings, > in column queries and having qualifiers. > Supported by relationship properties. > Example: > ObjectSelect.query(Artist.class) > > .where(Artist.PAINTING_ARRAY.alias("p1").dot(Painting.PAINTING_TITLE).eq("painting2")) > > .and(Artist.PAINTING_ARRAY.alias("p2").dot(Painting.PAINTING_TITLE).eq("painting4")) > .select(context); -- This message was sent by Atlassian JIRA (v7.6.3#76005)