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

Bug 326126

Summary: WDF TestCascadeFlush.testSimpleCascadeToDetached1 and TestCascadePersist.testSimpleCascadeDetached
Product: z_Archived Reporter: Adrian Goerler <adrian.goerler>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: eclipselink.orm-inbox, tom.ware
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: test simple_fix
Attachments:
Description Flags
proposed patch for 2.2.0 none

Description Adrian Goerler CLA 2010-09-24 04:54:28 EDT
The tests provoke an exception that causes a rollback and atempt to assert a particular state on the database after the exception but before the rollback. As the persistence context is in state rollback only, on assumption with respect to the state on the database should be made.

Needs to be fixed in trunk (2.2.0) and 2.1.2.
Comment 1 Adrian Goerler CLA 2010-09-24 04:57:47 EDT
Created attachment 179503 [details]
proposed patch for 2.2.0
Comment 2 Adrian Goerler CLA 2010-09-24 11:16:35 EDT
Comment on attachment 179503 [details]
proposed patch for 2.2.0

Patch valid for 2.1.1 as well
Comment 3 Adrian Goerler CLA 2010-09-24 11:20:55 EDT
Tested on MySQL on 2.2.0 and 2.1.2.

Checked in a simple_fix:
2.2.0: 8238
2.1.2: 8239
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:35:45 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink