[ 
https://issues.apache.org/jira/browse/OPENJPA-1288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12753819#action_12753819
 ] 

Pinaki Poddar commented on OPENJPA-1288:
----------------------------------------

After discussion in JPA 2.0 expert group, we reached the consensus that alias() 
be a mutation on the same instance rather than creating a new instance.
But an aliased expression can not be aliased again.

> Support alias() on Criteria Query API
> -------------------------------------
>
>                 Key: OPENJPA-1288
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1288
>             Project: OpenJPA
>          Issue Type: New Feature
>          Components: jpa, query
>    Affects Versions: 2.0.0-M3, 2.0.0-M4, 2.0.0
>            Reporter: Pinaki Poddar
>            Assignee: Pinaki Poddar
>             Fix For: 2.0.0-M3, 2.0.0-M4, 2.0.0
>
>
> Selection.alias() according to latest JPA 2.0 creates new instances rather 
> than adding an alias name to the receiver.
> This apparently simple change can have a relatively large impact, because we 
> maintain Selection terms keyed by its alias.
> If we go for a delegation pattern to implement alias(), then all Selection 
> derivations (quite a few of them) are to be delegated. 
> Comments/thoughts?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to