OpenJPA
  1. OpenJPA
  2. OPENJPA-1280

OneToMany Bidirectional inverse relation not set when using data cache, fetch groups

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.0, 1.2.1
    • Fix Version/s: None
    • Component/s: datacache
    • Labels:
      None

      Description

      If there is an instance of the other side of a OneToMany bidirectional relation in the data cache, and it was not fetched with the bidirectional relationship set (i.e., turned off in a fetch group), the inverse relation will remain null even when the "One" side is fetched normally.

      I believe this is what I was seeing here:
      http://n2.nabble.com/Problem-with-data-cache-inverse-relation-maybe-parallel-eager-results-td3400117.html

        Activity

        Hide
        David Minor added a comment -

        I didn't come up with a good fix for this, but as noted in the mailing list, reverting the changes for OPENJPA-744 fixed this issue.

        Show
        David Minor added a comment - I didn't come up with a good fix for this, but as noted in the mailing list, reverting the changes for OPENJPA-744 fixed this issue.
        Hide
        David Minor added a comment -

        Test case patch against 1.2.1 which demonstrates the issue.

        Show
        David Minor added a comment - Test case patch against 1.2.1 which demonstrates the issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            David Minor
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development