|Issues with uow.getOriginalVersionOfObject(workingClone) [message #1162991]
||Wed, 30 October 2013 19:18
| Alexandru Rosu
Registered: October 2013
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:
-do some work on the clone
-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.
Powered by FUDForum
. Page generated in 0.01803 seconds