[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-5222) upgrade to OPTIMISTIC_FORCE_INCREMENT fails
Robert Mlekus (JIRA)
noreply at atlassian.com
Mon Jul 25 11:09:20 EDT 2011
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-5222?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43057#comment-43057 ]
Robert Mlekus commented on HHH-5222:
------------------------------------
javax.persistence.EntityManager.lock(object, javax.persistence.LockModeType.WRITE) is broken in hibernate 3.6.4 (jboss-6.1.0-snapshot), too (was working in Hibernte 3.3.1 (JBoss 5.1.0))
workaround: replace the javax.persistence EntityManager.lock with a HibernateSession.locklock( item, LockMode.FORCE );
(which makes the code hibernate specific, though!)
> 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
> Reporter: Scott Marlow
> Assignee: Scott Marlow
>
> 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