Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 315141

Summary: Cascade Remove does not support cycles
Product: z_Archived Reporter: Gordon Yorke <gordon.yorke>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P2 CC: christianmenz, golgoth14, jamesssss, michael.f.obrien, peter.krogh, tom.ware
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Gordon Yorke CLA 2010-05-31 16:25:46 EDT
Currently Cascade Remove support does not perform shallow updates to break cycles.  During the remove cascading process FK's should be updated to break cycles.
Comment 1 Tom Ware CLA 2010-06-14 14:29:02 EDT
Setting target and priority.  See the following page for details of what these fields mean:

http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines
Comment 2 Peter Krogh CLA 2010-07-26 08:52:23 EDT
Deferring to 2.2.0, as we are closing down 2.1.1.
Comment 3 Christian CLA 2010-08-11 06:58:32 EDT
I have an issue with this too:

class A {

	A parent;

	List  children (cascade=ALL)
}


Now I want to remove a part of the tree. As far as I understand the order
of the delete statements is essential in order not to violate the constraints.

em.remove(a); (a has children) does not work because it violates the FK-constraint - this is because EclipseLink seems to delete the parent first.
Comment 4 Tom Ware CLA 2010-11-18 10:38:58 EST
Deferring.  This fix will not make 2.2.
Comment 5 Tom Ware CLA 2010-11-18 10:46:05 EST
See  Bug 330580 - Support class-level cycles for CascadeRemove for addtional functionality that should be considered when addressing this bug.
Comment 6 James Sutherland CLA 2011-02-08 15:32:10 EST
Fixed as part of,

https://bugs.eclipse.org/bugs/show_bug.cgi?id=328040
Comment 7 Eclipse Webmaster CLA 2022-06-09 10:32:05 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink