-->
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 Question
PostPosted: Fri Aug 11, 2006 10:30 am 
Newbie

Joined: Fri Jun 03, 2005 11:36 am
Posts: 8
Hello friends -

I'm curious as to how the hilo function is generating numbers. I have a hibernate_unique_key table with the column, workorder_history_id column. That column is populated with a value. However, the value it has never seems to increment, and is tens of thousands behind the actual key value being pushed in when I create new records into the table referenced by the code snipet below.

I've experienced no errors, but am having a bit of a sinking feeling that I don't really understand how the hilo mechanism is getting new values. If I create new records, the value in hiberante_unique_key does not increment, but I get valid primary keys. If I change the parameter in the column to a column that does not exist in hibernate_unique_key, I get errors, so I'm confident that the parameters are being taken in and used.

Can anyone help? Thanks!
-pD

Hibernate version:

2.1

Mapping documents:

<generator class="hilo">
<param name="column">workorder_history_id</param>
</generator>

Name and version of the database you are using:

mysql 4.1

The generated SQL (show_sql=true):

_________________
I've got that sunny bunny feeling.


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.