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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.1
    • 1.3.0, 2.0.0-M3
    • jdbc
    • None
    • All environments using JDBC store.
    • 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. mapkey-inverse-relation-test.patch
          7 kB
          David Minor
        2. openjpa.patch
          0.8 kB
          David Minor

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: