[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-5253) TableHiLoGenerator does not increment hi-value any more when lo-range es exhausted

Steve Ebersole (JIRA) noreply at atlassian.com
Fri May 21 16:30:11 EDT 2010


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

Steve Ebersole updated HHH-5253:
--------------------------------

             Assignee: Steve Ebersole
    Affects Version/s:     (was: 3.5.2)
        Fix Version/s: 3.6
                       3.5.x
          Environment:     (was: Hibernate 3.5.2, DB2 v9.7)

> TableHiLoGenerator does not increment hi-value any more when lo-range es exhausted
> ----------------------------------------------------------------------------------
>
>                 Key: HHH-5253
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5253
>             Project: Hibernate Core
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 3.5.1
>            Reporter: Martin Gubser
>            Assignee: Steve Ebersole
>             Fix For: 3.5.x, 3.6
>
>         Attachments: A.java, HiLoTest.java
>
>
> The {{TableHiLoGenerator}} increments the lo value when it first gets a lo-range but not any more when it grabs further lo-ranges. 
> The first run of the attached program leaves the hi-value=1. Consequently on the second run it uses an id that has already been assigned to.

-- 
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