[hibernate-issues] [Hibernate-JIRA] Closed: (HHH-1546) generated version properties fail with multiple actions per flush

Steve Ebersole (JIRA) noreply at atlassian.com
Mon Mar 21 13:00:50 EDT 2011


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1546?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Ebersole closed HHH-1546.
-------------------------------


Closing stale resolved issues

> generated version properties fail with multiple actions per flush
> -----------------------------------------------------------------
>
>                 Key: HHH-1546
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1546
>             Project: Hibernate Core
>          Issue Type: Bug
>          Components: core
>            Reporter: Steve Ebersole
>            Assignee: Steve Ebersole
>            Priority: Minor
>             Fix For: 3.2.0.alpha2, 3.1.3
>
>
> An entity with a version property that is defined as generated will cause bogus optimistic lock failures if the given entity has multiple queued actions for a given flush cycle.  The cause is that the actions are constructed before any of the DML has been executed and cache the "previousVersion" to use for optimistic locking based on the entity's current state.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list