[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-5194?page=c...
]
Swen Thümmler edited comment on HHH-5194 at 5/5/10 8:55 AM:
------------------------------------------------------------
The following patch fixes it:
{noformat}
--- core/src/main/java/org/hibernate/id/SequenceHiLoGenerator.java.orig 2010-05-05
15:47:36.015938620 +0200
+++ core/src/main/java/org/hibernate/id/SequenceHiLoGenerator.java 2010-05-05
15:47:37.815976543 +0200
@@ -86,6 +86,7 @@
}
}
+ lo++;
return value.makeValueThenIncrement();
}
{noformat}
was (Author: grmblfrz):
The following patch fixes it:
--- core/src/main/java/org/hibernate/id/SequenceHiLoGenerator.java.orig 2010-05-05
15:47:36.015938620 +0200
+++ core/src/main/java/org/hibernate/id/SequenceHiLoGenerator.java 2010-05-05
15:47:37.815976543 +0200
@@ -86,6 +86,7 @@
}
}
+ lo++;
return value.makeValueThenIncrement();
}
SequenceHiLoGenerator does not update the lo value
--------------------------------------------------
Key: HHH-5194
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-5194
Project: Hibernate Core
Issue Type: Bug
Components: core
Affects Versions: 3.5.1
Reporter: Swen Thümmler
Priority: Critical
SequenceHiLoGenerator checks lo > maxLo but never increments lo. This leads to
duplicate ids when using the same sequence for multiple tables. This change was made in
r18789
--
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira