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

Inverse relations not set for MapKey field when using parallel eager select

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.1
    • Fix Version/s: 1.3.0, 2.0.0-M3
    • Component/s: jdbc
    • Labels:
      None
    • Environment:
      All environments using JDBC store.
    • Patch Info:
      Patch Available

      Description

      When selecting multiple entities A which contain a @MapKey field for entity B, the inverse relation from B to A will only be set for the first entity A, when using parallel eager select. This is because all entity B objects are created when loading the 1st entity A object, with the inverse relation to be set later in setInverseRelation(), but setInverseRelation() is looking for Collection fields only, so the Map fields are ignored.

        Attachments

        1. openjpa.patch
          0.8 kB
          David Minor
        2. mapkey-inverse-relation-test.patch
          7 kB
          David Minor

          Activity

            People

            • Assignee:
              drwoods Donald Woods
              Reporter:
              david minor David Minor
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: