[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-5222?page=c...
]
Scott Marlow edited comment on HHH-5222 at 11/23/11 10:42 AM:
--------------------------------------------------------------
From a JPA point of view, LockModeType.READ is supposed to equal
LockModeType.OPTIMISTIC. LockModeType.WRITE is supposed to equal
LockModeType.OPTIMISTIC_FORCE_INCREMENT. I think the important change is to
LockMode.OPTIMISTIC_FORCE_INCREMENT( 7 ).
We can also change to LockMode.OPTIMISTIC( 6 ) but it shouldn't matter whether
LockMode.OPTIMISTIC is higher/lower than LockMode.READ (5).
/me needs to verify this further... ;)
was (Author: smarlow(a)redhat.com):
From a JPA point of view, LockModeType.READ is supposed to equal
LockModeType.OPTIMISTIC. LockModeType.WRITE is supposed to equal
LockModeType.OPTIMISTIC_FORCE_INCREMENT. I think the important change is to
LockMode.OPTIMISTIC_FORCE_INCREMENT( 7 ).
We can also change to LockMode.OPTIMISTIC( 6 ) but it shouldn't matter whether
LockMode.OPTIMISTIC is higher/lower than LockMode.READ (6).
/me needs to verify this further... ;)
upgrade to OPTIMISTIC_FORCE_INCREMENT fails
-------------------------------------------
Key: HHH-5222
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-5222
Project: Hibernate Core
Issue Type: Bug
Affects Versions: 3.6.8, 4.0.0.CR6
Reporter: Scott Marlow
Assignee: Scott Marlow
Attachments: HHH-5222-test.txt
See hhh5032-2.patch attached to HHH-5032
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira