users@glassfish.java.net

Re: Optimistic locking : unnecessary update statements generated

From: <glassfish_at_javadesktop.org>
Date: Mon, 09 Apr 2007 20:26:06 PDT

whether i specify LockModeType.READ or LockModeType.WRITE, the situation
is the same...many update sql generated (update version field only)..

   i guess it is the way toplink essentials to lock the underlying database record
by updating a record field to lock the object (database's ability to prevent dirty read)..


   any other suggestion?

   thank you very much
[Message sent by forum member 'imperfect' (imperfect)]

http://forums.java.net/jive/thread.jspa?messageID=211615