Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-135

join fetch not returning duplicate references which not conforming to ejb3.0 spec

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: 1.0.2
    • Component/s: jpa
    • Labels:
      None

      Description

      In the description in EJB 3.0 JPA spec, section 4.4.5.3, the following query example
      SELECT d
      FROM Department d LEFT JOIN FETCH d.employees
      WHERE d.deptno = 1

      The spec says this query returns 5 references to the department 1 entity if department 1 has 5 employees.

      The same query running with openjpa code, it returns only 1 reference to department 1 entity.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: