Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 329055 - Deleted entity's private owned child entities does not get preRemove event
Summary: Deleted entity's private owned child entities does not get preRemove event
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P2 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-29 11:15 EDT by Daniel Lo CLA
Modified: 2022-06-09 10:25 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Lo CLA 2010-10-29 11:15:26 EDT
Build Identifier: 2.0.2.v20100323-r6872

When an entity is deleted by EntityManager.remove() API, its private owned child entities are deleted when the transaction is committed.  The JPA preRemove event was not fired against the deleted private owned child entities, the applications rely on this event to clean up some relationships, so this event should be fired during EntityManager.remove() when the parent entity is deleted, it will be too late to do the cleanup during the commit via the preDelete event.  So it would idea that Entity.remove() API can recursively delete the private owned child entities.

Reproducible: Always
Comment 1 Tom Ware CLA 2010-11-12 08:18:09 EST
Setting target and priority.  See the following page for the meanings of these fields:

http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:16:05 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:25:49 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink