Details

    • Type: Sub-task Sub-task
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-M2
    • Fix Version/s: 2.0.0-M2
    • Component/s: jpa
    • Labels:
      None

      Description

      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);

        Activity

        Hide
        Catalina Wei added a comment -

        work remains to complete full support of element collection in query;
        when an identification variable is defined over an element collection, this identifier can appear as an argument of INDEX or TYPE functions, or could be referenced is where clause or further navigated down the path.
        These will be address in sub-task of iteration 6.

        Show
        Catalina Wei added a comment - work remains to complete full support of element collection in query; when an identification variable is defined over an element collection, this identifier can appear as an argument of INDEX or TYPE functions, or could be referenced is where clause or further navigated down the path. These will be address in sub-task of iteration 6.
        Hide
        Catalina Wei added a comment -

        Support for elment collection within embeddable is checked in under r759330.
        Examples:

        select e from EntityA_Embed_Coll_Embed a , in (a.embed.embeds) e

        where EntityA_Embed_Coll_Embed contains an embeddable object "embed" and that embeddable object contains an element collection.

        Show
        Catalina Wei added a comment - Support for elment collection within embeddable is checked in under r759330. Examples: select e from EntityA_Embed_Coll_Embed a , in (a.embed.embeds) e where EntityA_Embed_Coll_Embed contains an embeddable object "embed" and that embeddable object contains an element collection.
        Hide
        Catalina Wei added a comment -

        Support for elment collection within embeddable is checked in under r759330.
        Examples:

        select e from EntityA_Embed_Coll_Embed a , in (a.embed.embeds) e

        where EntityA_Embed_Coll_Embed contains an embeddable object "embed" and that embeddable object contains an element collection.

        Show
        Catalina Wei added a comment - Support for elment collection within embeddable is checked in under r759330. Examples: select e from EntityA_Embed_Coll_Embed a , in (a.embed.embeds) e where EntityA_Embed_Coll_Embed contains an embeddable object "embed" and that embeddable object contains an element collection.
        Hide
        Catalina Wei added a comment -

        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.

        Show
        Catalina Wei added a comment - 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.

          People

          • Assignee:
            Catalina Wei
            Reporter:
            Jeremy Bauer
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Due:
              Created:
              Updated:
              Resolved:

              Development