[
https://issues.apache.org/jira/browse/OPENJPA-879?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Catalina Wei resolved OPENJPA-879.
----------------------------------
Resolution: Fixed
Fix Version/s: 2.0.0
Code committed in revision r750517 supports general/qualified identification
variables appear in selections:
examples:
select KEY(e) from PhoneNumber p, in (p.emps) e
select ENTRY(e) from PhoneNumber p, in (p.emps) e
select VALUE(e) from PhoneNumber p, in (p.emps) e
in which emps is a relation field of java type Map<K,V> .
JPA2 JPQL syntax allows qualified identification variables to appear in
single_valued_path_expression, which implies that
KEY(e) and VALUE(e) can be used to as a path and also can be further
navigated to its fields or relations. Those support will be added in iteration
5.
More testcases will be added to cover additional annotations using @MapKeyClass
and @MapKeyJoinColumns.
> JPA2 Query support for general and qualified identification variable
> ---------------------------------------------------------------------
>
> Key: OPENJPA-879
> URL: https://issues.apache.org/jira/browse/OPENJPA-879
> Project: OpenJPA
> Issue Type: Sub-task
> Affects Versions: 2.0.0
> Reporter: Catalina Wei
> Assignee: Catalina Wei
> Fix For: 2.0.0
>
>
> support query syntax of followings in path expressions :
> 1. Key(identifier)
> 2. Value(identifier)
> 3. Entry(identifier)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.