openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Catalina Wei (JIRA)" <j...@apache.org>
Subject [jira] Commented: (OPENJPA-961) Support projection of element collection from a JPQL query
Date Fri, 27 Mar 2009 16:46:51 GMT

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

Catalina Wei commented on OPENJPA-961:
--------------------------------------

An element collection can be in an entity or an embeddable object.
JPA2 query support for element collection within an entity is checked in under revision r758868,
but  element collection withiin an embeddable object is not available until we first add the
support for navigation thru embeddable object - a new functionality in JPA2.0 Spec.

> Support projection of element collection from a JPQL query
> ----------------------------------------------------------
>
>                 Key: OPENJPA-961
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-961
>             Project: OpenJPA
>          Issue Type: Sub-task
>          Components: jpa
>    Affects Versions: 2.0.0
>            Reporter: Jeremy Bauer
>            Assignee: Catalina Wei
>
> This task is to support projection of element collection elements within a JPQL query.
 Ex.  (SELECT b FROM ColEnt a JOIN a.coll b)  where coll is an element collection within entity
A.  There are some assertions commented out in TestOrderColumn.java that use JPQL for validation.
 They can be used to help test this task.
> // This validator is disabled until INDEX projection supports element 
> // collections
> //        validateIndexAndValues(em, "BaseTestEntity", "collelems", 10, 
> //                new Object[] { elems[0], elems[1], elems[2]} "id",
> //                bte.getId());
> and 
> //      This validator is disabled until INDEX projection supports element 
> //      collections
> //        validateIndexAndValues(em, "Owner", "bikeColl", 0, 
> //                bikeArr, "id", 
> //                oid);

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


Mime
View raw message