| Summary: | merge problem: existing object referenced by new not cascade merged | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Andrei Ilitchev <andrei.ilitchev> | ||||||
| Component: | Eclipselink | Assignee: | Nobody - feel free to take it <nobody> | ||||||
| Status: | CLOSED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | ||||||||
| Version: | unspecified | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Andrei Ilitchev
Created attachment 191796 [details]
suggested patch
The patch was suggested by James: in UnitOfWorkImpl.internalRegisterObject add registeredObject to newMergedObjects only if it's a new object.
Created attachment 191797 [details]
suggested patch - take 2
Adding a file forgotten in the first patch.
Checked into trunk. Added EntityManagerJUnitTestSuite.testMergeNewReferencingOldChanged Also added testMergeNewReferencingOldChangedClearCache - for now commented out until (closely related) bug 340810 - merge problem: existing object referenced by new not cascade merged if not in cache is fixed. The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |