About Question enthuware.oce-jpad.v6.2.362 :
Moderator: admin
-
- Posts: 5
- Joined: Thu Oct 17, 2013 9:26 pm
- Contact:
About Question enthuware.oce-jpad.v6.2.362 :
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: 10386
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.oce-jpad.v6.2.362 :
As per Section 3.4.4.1
HTH,
Paul.
So, even if you don't use locking, the semantics will be the same if you have @Version.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.
HTH,
Paul.
Who is online
Users browsing this forum: No registered users and 3 guests