Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-956 OpenJPA 2.0 iteration 5 primary task
  3. OPENJPA-961

Support projection of element collection from a JPQL query

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: 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);

        Attachments

          Activity

            People

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

              Dates

              • Due:
                Created:
                Updated:
                Resolved: