About Question enthuware.oce-jpad.v6.2.362 :

Moderator: admin

Post Reply
ericrlessa
Posts: 5
Joined: Thu Oct 17, 2013 9:26 pm
Contact:

About Question enthuware.oce-jpad.v6.2.362 :

Post by ericrlessa »

If I have @Version in my entity, but I don't use LockModeTypes in transaction, what would be modified beyond of update the column? @Version alone makes some difference?

admin
Site Admin
Posts: 10046
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.oce-jpad.v6.2.362 :

Post by admin »

As per Section 3.4.4.1
If a versioned object is otherwise updated or removed, then the implementation must ensure that the requirements of LockModeType.OPTIMISTIC_FORCE_INCREMENT are met, even if no explicit
call to EntityManager.lock was made.
So, even if you don't use locking, the semantics will be the same if you have @Version.

HTH,
Paul.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 34 guests