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

Bug 311760

Summary: Relationship to removed entities upon flush are not detected
Product: z_Archived Reporter: Adrian Goerler <adrian.goerler>
Component: EclipselinkAssignee: Project Inbox <eclipselink.orm-inbox>
Status: NEW --- QA Contact:
Severity: minor    
Priority: P2 CC: sabine.heider, tom.ware
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
URL: http://wiki.eclipse.org/EclipseLink/Bugs/309681#TestFlush
Whiteboard:
Bug Depends on:    
Bug Blocks: 309681    

Description Adrian Goerler CLA 2010-05-05 12:09:54 EDT
EclipseLink seems to fail to detect upon flush or commit if an entity has a relationship to a removed entity. According to ยง 3.2.4 "Synchronization to the Database" such a relationship should either cause the flush operation to fail with an IllegalStateException or a subsequent commit to fail.
Comment 1 Adrian Goerler CLA 2010-05-05 12:13:48 EDT
The issue is reproduced by the tests 

jpa/eclipselink.jpa.wdf.test:

org.eclipse.persistence.testing.tests.wdf.jpa1.entitymanager.TestFlush
- testRelationshipToRemoved
- testRelationshipToRemovedLazy
Comment 2 Tom Ware CLA 2010-05-13 09:51:16 EDT
Setting initial target and priority.  Feel free to alter these values if you are planning on investigating this issue, or to send some comments about these values either by updating this bug, or emailing me.
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:10:58 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink