Hi All,
For some reason the Hibernate HiLo ID generator is generating negative numers on me. The table's value is:
110000653
But Hibernate creates the id as something just like this:
-1774836036
This appears to be some sort of over flow error, but I can't figure it out. We use longs in all of our objects and the mapping files. Here are the details:
Hibernate version:
3.0 rc1
Mapping documents:
<id name="id" type="long">
<generator class="hilo">
<param name="table">objectid</param>
<param name="column">next</param>
<param name="max_lo">100</param>
</generator>
</id>
Name and version of the database you are using:
oracle 9i
9.2.0.4
Help,
Kevin
|