Bug 311760 - Relationship to removed entities upon flush are not detected
Summary: Relationship to removed entities upon flush are not detected
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P2 minor (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL: http://wiki.eclipse.org/EclipseLink/B...
Whiteboard:
Keywords:
Depends on:
Blocks: 309681
  Show dependency tree
 
Reported: 2010-05-05 12:09 EDT by Adrian Goerler CLA
Modified: 2022-06-09 10:10 EDT (History)
2 users (show)

See Also:


Attachments

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