It only works for a single instance. So the traversal of the object graph must be done by the user :-(
cheers, Thomas
Weaver, Scott wrote:
Thomas,
Does this trick work for the entire object graph or just the top level object?
Thanks,
*===================================*
* Scott T Weaver *
* Jakarta Jetspeed Portal Project *
* [EMAIL PROTECTED] *
*===================================*
-----Original Message----- From: Thomas Mahler [mailto:[EMAIL PROTECTED] Sent: Thursday, July 03, 2003 2:26 AM To: OJB Users List Subject: Re: basic question: update with odmg api
Hi Marco,
Marco Achermann wrote:
Hi List
in tutorial2 is a short example about updating an object. It shows that all modifications on the model happen after the object ist locked by the tx so the object can be updatet properly.
Is there a way to update a given model though the modifications where performed bevore locking the model?
This is not supported by ODMG API (not OJB specific!) With a simple trick you can still implement it:
1. lock the object to the transaction 2. cast the transaction object to org.apache.ojb.odmg.TransactionImpl. 3. call the method markdirty(object)
cheers, thomas
tyk Marco
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
