[hibernate-issues] [JIRA] (HHH-14009) LockModeType.OPTIMISTIC_FORCE_INCREMENT causes Hibernate to issue a second update statement when an entity is already marked as dirty

Martin Tamme (JIRA) jira at hibernate.atlassian.net
Sat May 9 07:14:00 EDT 2020


Martin Tamme ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5eb68b676c84140b9e9c3625 ) *created* an issue

Hibernate ORM ( https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiOTE5YjQ4NTIwNzhiNDc0MmJkMjNlYjBmODIzZjFjNGQiLCJwIjoiaiJ9 ) / Bug ( https://hibernate.atlassian.net/browse/HHH-14009?atlOrigin=eyJpIjoiOTE5YjQ4NTIwNzhiNDc0MmJkMjNlYjBmODIzZjFjNGQiLCJwIjoiaiJ9 ) HHH-14009 ( https://hibernate.atlassian.net/browse/HHH-14009?atlOrigin=eyJpIjoiOTE5YjQ4NTIwNzhiNDc0MmJkMjNlYjBmODIzZjFjNGQiLCJwIjoiaiJ9 ) LockModeType.OPTIMISTIC_FORCE_INCREMENT causes Hibernate to issue a second update statement when an entity is already marked as dirty ( https://hibernate.atlassian.net/browse/HHH-14009?atlOrigin=eyJpIjoiOTE5YjQ4NTIwNzhiNDc0MmJkMjNlYjBmODIzZjFjNGQiLCJwIjoiaiJ9 )

Issue Type: Bug Affects Versions: 5.4.14 Assignee: Unassigned Attachments: hibernate-orm-5-test-case.zip Components: hibernate-core Created: 09/May/2020 04:13 AM Priority: Major Reporter: Martin Tamme ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5eb68b676c84140b9e9c3625 )

LockModeType.OPTIMISTIC_FORCE_INCREMENT causes Hibernate to issue a second update statement when an entity is already marked as dirty.

Hibernate: 
   update
       JPAEntity 
   set
       name=?,
       version=? 
   where
       id=? 
       and version=?
Hibernate: 
   update
       JPAEntity 
   set
       version=? 
   where
       id=? 
       and version=?

( https://hibernate.atlassian.net/browse/HHH-14009#add-comment?atlOrigin=eyJpIjoiOTE5YjQ4NTIwNzhiNDc0MmJkMjNlYjBmODIzZjFjNGQiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-14009#add-comment?atlOrigin=eyJpIjoiOTE5YjQ4NTIwNzhiNDc0MmJkMjNlYjBmODIzZjFjNGQiLCJwIjoiaiJ9 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100126- sha1:9bc00fe )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200509/4214269e/attachment.html 


More information about the hibernate-issues mailing list