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

Steve Ebersole (JIRA) noreply at atlassian.com
Fri Jul 16 15:30:14 EDT 2010


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

Steve Ebersole closed HHH-5253.
-------------------------------


> 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.3, 3.6
>
>         Attachments: A.java, HiLoTest.java
>
>          Time Spent: 0.8h
>  Remaining Estimate: 0h
>
> 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