OpenJPA
  1. OpenJPA
  2. OPENJPA-1597

Need Compatibility setting for new OPENJPA-1097 Proxies and DetachedStateField behavior

    Details

      Description

      Need Compatibility setting for new Proxies and DetachedStateField behavior introduced in OPENJPA-1097 for legacy 1.0 persistence.xml apps, that rely on old behavior that using DetachedStateField=true would remove $proxy usage when serialized, but the new behavior is to keep the $proxy usage since we are serializing the StateManager into the object....

      1. OPENJPA-1597-12x-code.patch
        23 kB
        Donald Woods
      2. OPENJPA-1597-12x-tests.patch
        105 kB
        Donald Woods
      3. OPENJPA-1597-13x.patch
        18 kB
        Donald Woods
      4. OPENJPA-1597-13x-doc.patch
        3 kB
        Donald Woods
      5. OPENJPA-1597-20x-20100327.patch
        47 kB
        Donald Woods
      6. OPENJPA-1597-20x-docs.patch
        2 kB
        Donald Woods
      7. OPENJPA-1597-20x-tests.patch
        114 kB
        Donald Woods
      8. OPENJPA-1597-20x-tests-fix.patch
        2 kB
        Donald Woods
      9. OPENJPA-1597-trunk-20100327.patch
        10 kB
        Donald Woods
      10. OPENJPA-1597-trunk-compat.patch
        41 kB
        Donald Woods
      11. OPENJPA-1597-trunk-tests.patch
        114 kB
        Donald Woods
      12. OPENJPA-1597-trunk-tests-fix.patch
        2 kB
        Donald Woods

        Issue Links

          Activity

          Hide
          Donald Woods added a comment -

          Tests to verify any code changes fix the reported problem by allowing prior proxy behavior.

          Show
          Donald Woods added a comment - Tests to verify any code changes fix the reported problem by allowing prior proxy behavior.
          Hide
          Donald Woods added a comment -

          Patches to fix test failure when run with other tests due to entity/table name collisions.
          Already checked into trunk as 927506 and 2.0.x as r927521.

          Show
          Donald Woods added a comment - Patches to fix test failure when run with other tests due to entity/table name collisions. Already checked into trunk as 927506 and 2.0.x as r927521.
          Hide
          Donald Woods added a comment -

          Version of tests for 1.2.x showing expected behavior for 1.0 apps.

          Show
          Donald Woods added a comment - Version of tests for 1.2.x showing expected behavior for 1.0 apps.
          Hide
          Donald Woods added a comment -

          Patches that add a new openjpa.Compatibility flag of IgnoreDetachedStateFieldForProxySerialization, which when 2.0 apps set to TRUE, will use the old 1.0 behavior for Proxies.writeReplace(), along with automatically using the old behavior for 1.0 apps.
          Patch file 20100327 reverts a previous addition of removing proxies when they are detached, which broke a detach/merge scenario when using proxied List collections.

          Show
          Donald Woods added a comment - Patches that add a new openjpa.Compatibility flag of IgnoreDetachedStateFieldForProxySerialization, which when 2.0 apps set to TRUE, will use the old 1.0 behavior for Proxies.writeReplace(), along with automatically using the old behavior for 1.0 apps. Patch file 20100327 reverts a previous addition of removing proxies when they are detached, which broke a detach/merge scenario when using proxied List collections.
          Hide
          Donald Woods added a comment -

          compat+20100327 patches ported from trunk and combined into one patch and committed as r928271

          Show
          Donald Woods added a comment - compat+20100327 patches ported from trunk and combined into one patch and committed as r928271
          Hide
          Donald Woods added a comment -

          Doc updates for new Compatibility option.

          Show
          Donald Woods added a comment - Doc updates for new Compatibility option.
          Hide
          Donald Woods added a comment -

          Add Compatibility option to use new 2.0 behavior of removing proxy classes unless DetachedStateField=true, but default is still the old behavior.

          Show
          Donald Woods added a comment - Add Compatibility option to use new 2.0 behavior of removing proxy classes unless DetachedStateField=true, but default is still the old behavior.
          Hide
          Donald Woods added a comment -

          Update to 1.3.x docs to mention $proxy problem during serialization and how to use the new compatibility property.

          Show
          Donald Woods added a comment - Update to 1.3.x docs to mention $proxy problem during serialization and how to use the new compatibility property.
          Hide
          Donald Woods added a comment -

          Patch that adds the openjpa.Compatibility property and behavior for IgnoreDetachedStateFieldForProxySerialization, along with doc and test updates.

          Show
          Donald Woods added a comment - Patch that adds the openjpa.Compatibility property and behavior for IgnoreDetachedStateFieldForProxySerialization, along with doc and test updates.
          Hide
          Donald Woods added a comment -

          Default behavior updated in 2.0. Prior 1.3.x requires usage of Compatibility property to use the new behavior. Patch attached for 1.2.x if we ever decide to apply it there.

          Show
          Donald Woods added a comment - Default behavior updated in 2.0. Prior 1.3.x requires usage of Compatibility property to use the new behavior. Patch attached for 1.2.x if we ever decide to apply it there.

            People

            • Assignee:
              Donald Woods
              Reporter:
              Donald Woods
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development