Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » CopyGroup shallow copy
CopyGroup shallow copy [message #1729929] Wed, 20 April 2016 10:18
Tom Eugelink is currently offline Tom EugelinkFriend
Messages: 817
Registered: July 2009
Senior Member
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.

Tom
Previous Topic:Unmarshalling inheritance based entity failed in WebLogic
Next Topic:DDL Generation: Output alter table to a file (only to file)
Goto Forum:
  


Current Time: Tue Apr 07 21:26:40 GMT 2020

Powered by FUDForum. Page generated in 0.04680 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top