Hi Kevin, Kevin Viet wrote:
Hello allODMG specify that an object must be updated in between transaction bounds try { tx.begin() obj.setA(a); obj.setB(b); // ... tx.commit() } catch (Throwable t) { tx.rollback(); } First question : if an error occurs after obj.setB() will the object remains in an unaffected state ?
No, ODMG does not rollback the state of objects on a tx.rollback()! (This is in compliance with the ODMG spec.) cheers, Thomas -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
