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

Bug 343611

Summary: Merging ObjectChangeSets fail to merge deferredSet
Product: z_Archived Reporter: Gordon Yorke <gordon.yorke>
Component: EclipselinkAssignee: Gordon Yorke <gordon.yorke>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: eclipselink.foundation-inbox
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed Patch
none
Tests
none
Updated Patch none

Description Gordon Yorke CLA 2011-04-21 15:29:59 EDT
In cased where an ObjectChangeSet needs to be merged (after commitAndResume for instance) any tracking of the set of deferred collections is not merged and the information will be lost.
Comment 1 Gordon Yorke CLA 2011-04-21 15:41:00 EDT
This will result in any changes made after a UnitOfWork resume being lost when an entire collection was replaced.
Comment 2 Gordon Yorke CLA 2011-04-21 15:43:09 EDT
UnitOfWorkResumeOnFailureTest has been updated to actually verify the changes and not just compare the merged object with the database object.
Comment 3 Gordon Yorke CLA 2011-04-21 16:02:47 EDT
Created attachment 193876 [details]
Proposed Patch

This patch causes the deferred set to be merged.
Comment 4 Gordon Yorke CLA 2011-04-21 16:21:54 EDT
Created attachment 193884 [details]
Tests
Comment 5 Gordon Yorke CLA 2011-04-27 12:08:43 EDT
Created attachment 194177 [details]
Updated Patch

This patch includes some updates to support the ObjectChangeSet merge that occurs after the flush of a PersistenceContext
Comment 6 Gordon Yorke CLA 2011-06-15 09:14:23 EDT
Checked into revision 9306
Reviewed by Andrei Ilitchev
Comment 7 Eclipse Webmaster CLA 2022-06-09 10:04:04 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink