[ 
https://issues.apache.org/jira/browse/CAY-2507?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arseni Bulatski closed CAY-2507.
--------------------------------
    Resolution: Fixed

> 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)

Reply via email to