openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pinaki Poddar (JIRA)" <>
Subject [jira] Commented: (OPENJPA-1288) Support alias() on Criteria Query API
Date Thu, 10 Sep 2009 21:12:57 GMT


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:
>             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.

View raw message