This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 249033 - JPA 2.0 Orphan removal
Summary: JPA 2.0 Orphan removal
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P2 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 248291
  Show dependency tree
 
Reported: 2008-09-29 15:43 EDT by Gordon Yorke CLA
Modified: 2022-06-09 10:30 EDT (History)
4 users (show)

See Also:


Attachments
Proposed changes (152.61 KB, patch)
2009-05-01 11:40 EDT, Guy Pelletier CLA
no flags Details | Diff
Updated patch (more tests and core fix) (169.53 KB, patch)
2009-05-04 14:10 EDT, Guy Pelletier CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gordon Yorke CLA 2008-09-29 15:43:26 EDT
JPA 2.0 specification has introduced an Orphan Removal option to relationship mappings.  If this option is set to true then any child removed from the relationship must be removed (deleted).  Adoption (moving a child from one relationship to another and not having it removed) is not supported by the specification but may be an option for EclipseLink.

See http://wiki.eclipse.org/index.php?title=EclipseLink/Development/JPA_2.0/orphan_removal for details.
Comment 1 Doug Clarke CLA 2009-04-08 15:09:50 EDT
Changing priority to P@ since JPA 2.0 features are required for the 2.0 release
Comment 2 Guy Pelletier CLA 2009-05-01 11:40:01 EDT
Created attachment 134072 [details]
Proposed changes
Comment 3 Guy Pelletier CLA 2009-05-04 14:10:55 EDT
Created attachment 134281 [details]
Updated patch (more tests and core fix)

Reviewed by Gordon Yorke
Comment 4 Guy Pelletier CLA 2009-05-04 16:31:04 EDT
Fix for bug 249033 - JPA 2.0 Orphan removal

Reviewed by: Gordon Yorke

New tests added to the new test suite OrphanRemovalJUnitTestCase
Comment 5 Peter Krogh CLA 2009-08-26 09:44:52 EDT
Mass update to change fixed in target.
Comment 6 Peter Krogh CLA 2009-08-26 09:47:14 EDT
Mass update to change fixed in target.
Comment 7 Peter Krogh CLA 2009-08-26 09:51:10 EDT
Mass update to change fixed in target.
Comment 8 Peter Krogh CLA 2009-08-26 09:53:41 EDT
Mass update to change fixed in target.
Comment 9 Eclipse Webmaster CLA 2022-06-09 10:30:57 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink