Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Issues with uow.getOriginalVersionOfObject(workingClone)
Issues with uow.getOriginalVersionOfObject(workingClone) [message #1162991] Wed, 30 October 2013 19:18
Alexandru Rosu is currently offline Alexandru RosuFriend
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
-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.

- Alex
Previous Topic:EclipseLink seems to ignore columnDefinition and nullable
Next Topic:Can I use EclipseLink without sessions.xml/project.xml
Goto Forum:

Current Time: Wed May 23 11:28:57 GMT 2018

Powered by FUDForum. Page generated in 0.01648 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top