[
https://issues.apache.org/jira/browse/CAY-2507?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16732047#comment-16732047
]
ASF GitHub Bot commented on CAY-2507:
-------------------------------------
GitHub user aarrsseni opened a pull request:
https://github.com/apache/cayenne/pull/357
CAY-2507 Property api to add aliases
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/aarrsseni/cayenne CAY-2507
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cayenne/pull/357.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #357
----
commit e996e8001658698ecd4ccc56f41aafd4e04b0924
Author: Arseni Bulatski <ancarseni@...>
Date: 2018-12-29T13:58:14Z
CAY-2507 Property api to add aliases
----
> 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
>
> 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)