[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-5222) upgrade to OPTIMISTIC_FORCE_INCREMENT fails

Scott Marlow (JIRA) noreply at atlassian.com
Wed Nov 23 11:42:22 EST 2011


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-5222?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44396#comment-44396 ] 

Scott Marlow commented on HHH-5222:
-----------------------------------

>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

        


More information about the hibernate-issues mailing list