-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: HiLo generating negative numbers
PostPosted: Thu Apr 14, 2005 2:48 pm 
Newbie

Joined: Thu Apr 01, 2004 9:00 pm
Posts: 4
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.