Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsIssue with new entities after delete then merge
https://www.eclipse.org/forums/index.php/mv/msg/572980/1161428/#msg_1161428
What I think is happening, is that S is becoming detached from EclipseLink, and then when merge is called on it's sub entity, it is creating a new record. Is this a likely assumption? What I would like to happen is for the entity manager to throw an exception when I call merge on these now invalid sub children, as their parent is no longer valid in the system.
For what it's worth, the Entity S has cascade = CascadeType.ALL set for it's mappings to it's sub entities, but the sub entities do not have this defined for the link back to S.
Should I be using @PrivateOwned for the children of S?]]>Rob Young2013-10-29T20:14:03-00:00Re: Issue with new entities after delete then merge
https://www.eclipse.org/forums/index.php/mv/msg/572980/1164153/#msg_1164153
Chris Delahunt2013-10-31T13:20:46-00:00Re: Issue with new entities after delete then merge
https://www.eclipse.org/forums/index.php/mv/msg/572980/1173951/#msg_1173951
Rob Young2013-11-06T21:27:33-00:00Re: Issue with new entities after delete then merge
https://www.eclipse.org/forums/index.php/mv/msg/572980/1175085/#msg_1175085
Rob Young2013-11-07T14:14:52-00:00