Issues with uow.getOriginalVersionOfObject(workingClone) [message #1162991] |
Wed, 30 October 2013 19:18 |
Alexandru Rosu Messages: 1 Registered: October 2013 |
Junior Member |
|
|
I am experiencing an issue with uow.getOriginalVersionOfObject(workingClone) returning a blank object when the original object exists. This seems to only happen when registering the original object within an already started transaction.
The following sequence of events seems to reproduce this behaviour accurately:
-acquire uow
-uow.beginEarlyTransaction()
-uow.registerExistingObject(someObject)
-do some work on the clone
-uow.commit()
-during commit we receive some callbacks from EclipseLink on a DescriptorEventListner such as preUpdate(); calling uow.getOriginalVersionOfObject(workingClone) for the previously registered object will return a blank object.
I have found a documented bug from 2009 here that seems to be identical to what I'm experiencing.
Finally I would like to ask if using uow.getCloneMapping().get(workingClone) is a good replacement for uow.getOriginalVersionOfObject(workingClone) and what would be the possible downsides.
- Alex
|
|
|
Powered by
FUDForum. Page generated in 0.02965 seconds