|[CDO] CDOStaleReferencePolicy.PROXY vs bind method [message #989205]
||Wed, 05 December 2012 03:50
| Paco Blanco
Registered: June 2012
We set stale reference policy of an transaction to PROXY mode:|
We have an existent (not stale) object in an audit view and want to bind this object to a transaction in PROXY mode. Unluckly, bind method always throws ObjectNotFound exception instead of a proxy object to check CDOUtil.isStaleObject(object).
In fact, this is an possible error to a big unimplement thing:
I have an object in audit view and I do a copy of it that I want to save in db. I bind this new copy object to transaction but at committing all eReference return an "object is from different view" exception. So I have to do a recursive bind of all eReference inner elements and replace them. When I find a stale reference object in the recursive bind, bind methods throws the exception refers in this topic.
[Updated on: Wed, 05 December 2012 03:52]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.04865 seconds