You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attached project demonstrates that PersistenceManager.detachCopy(Object) fails when the object graph has these properties:
There is a loop
The loop contains a Map key
The Map key has hashcode() overridden
The reason detaching fails is that the instance added to the Map is still being detached (the fields are not set yet).
It is possible that this issue cannot be fixed due to the nature of the object graph, and the requirement of JDO to detach a copy. DN_FailingDetach.zip
Detaching the same object graph at the end of a transaction (i.e. in-place) works perfectly. The settings for this are:
javax.jdo.option.DetachAllOnCommit=true
javax.jdo.option.RetainValues=true
The text was updated successfully, but these errors were encountered:
Attached project demonstrates that PersistenceManager.detachCopy(Object) fails when the object graph has these properties:
The reason detaching fails is that the instance added to the Map is still being detached (the fields are not set yet).
It is possible that this issue cannot be fixed due to the nature of the object graph, and the requirement of JDO to detach a copy.
DN_FailingDetach.zip
Detaching the same object graph at the end of a transaction (i.e. in-place) works perfectly. The settings for this are:
javax.jdo.option.DetachAllOnCommit=true
javax.jdo.option.RetainValues=true
The text was updated successfully, but these errors were encountered: