OpenJPA
  1. OpenJPA
  2. OPENJPA-2066

Edge case in openJPA-1227. openJPA fails to create a join and thus returns wrong data when a collection is selected from superclass and another field is selected from subclass twoor more levels down the hierarchy.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1.1, 2.1.1, 2.2.0
    • Fix Version/s: 1.1.1, 2.2.0
    • Component/s: None
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      openJPA-1227 fixes the wrong SQL generation error when superclass contains an eager to-many field, and this is the only field selected in the superclass, and when one or more fields are selected in the subclass, openjpa fails to create a join between the subclass and superclass. But the issue still remains when one or more fields are selected from subclasses two levels down the hierarchy.

      Example:
      GrandChildClass extends ChildChildClass extends ChildClass extends ParentClass.

      When I select a filed from GrandChildClass and a to-many field from ParentClass then openjpa fails to create a join between the classes.

      1. OPENJPA2066_11x.diff
        12 kB
        Ravi P Palacherla
      2. OPENJPA2066_trunk.diff
        12 kB
        Ravi P Palacherla

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Ravi P Palacherla
            Reporter:
            Ravi P Palacherla
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development