|CopyGroup shallow copy [message #1729929]
||Wed, 20 April 2016 10:18
| Tom Eugelink
Registered: July 2009
I would like to make a shallow copy of an entity. To prevent confusion: with that I mean a copy where all references are pointing to the same instances as the original does.|
So if I have an Entity A with a 1-N relation referring to entity B, then if A is copied as A', A' also references B and not copy of B (B').
If A' would then be persisted without any cascading on it, I would expect no problems, but right now I get a "unpersisted entity B found". This to me indicates that there is also a copy of B.
I assumed that setting depth to 0 would/should prevent this (using dontCascade), but that is not the case. I'm using EclipseLink 2.4.0.
Powered by FUDForum
. Page generated in 0.04680 seconds