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

Moderator: admin

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

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?

Site Admin
Posts: 9174
Joined: Fri Sep 10, 2010 9:26 pm

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

Post by admin »

As per Section
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.

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 1 guest