Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 315141 - Cascade Remove does not support cycles
Summary: Cascade Remove does not support cycles
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P2 normal with 3 votes (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-31 16:25 EDT by Gordon Yorke CLA
Modified: 2022-06-09 10:32 EDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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