OpenJPA
  1. OpenJPA
  2. OPENJPA-1933

@ElementCollection loose proxytype after serialisation

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: 2.0.0, 2.0.1, 2.1.1, 2.2.0
    • Fix Version/s: 2.4.0
    • Component/s: kernel
    • Labels:
      None

      Description

      usually an @ElementCollection field loaded from the database will be created as a org.apache.openjpa.java$.util$.ArrayListProxy.

      After serialisation/deserialisation (with DetachedStateField=true) the List will be recreated as standard java.util.ArrayList.

      This has the bad side effect, that any subsequent add to this ElementCollection will not set the _dirty field in the DetachedStateManager and any changes in the ElementCollection will not get saved to the database.

      1. openjpa-reg-tests.tar.gz
        5 kB
        Mark Struberg
      2. OPENJPA-1933-test-2.patch
        10 kB
        Mark Struberg
      3. OPENJPA-1933-test.patch
        9 kB
        Mark Struberg

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Mark Struberg
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development