|[CDO] Updating CDO references in XMI Resource [message #1005499]
||Fri, 25 January 2013 12:10
| Jack Lechner
Registered: December 2012
I am currently attempting to use an XMI Resource that has been stored as a CLOB in my db but I'm running across reference issues. The XMI Resource loads correctly when its referenced objects have CDOIDLong values but not when the objects have CDOIDTemp values.
I've found that I can update the XMI Resource by listening for a CDOTransactionFinished event, replacing the referenced temp CDOIDs with their corresponding Long values (in the XMI Resource), and then committing the updated XMI Resource to the db (as a CLOB). The problem with this is that it requires a second commit and seems like a very halfway answer to the issue at hand.
Is there an easier way to accomplish this or a better place in the code to update my XMI Resource? I'd really prefer to have everything committed at once if possible.
Thanks in advance!
Powered by FUDForum
. Page generated in 0.03162 seconds