-->
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: generator "hilo" and primary key issue
PostPosted: Thu Jul 26, 2007 9:06 am 
Beginner
Beginner

Joined: Thu Apr 15, 2004 2:01 pm
Posts: 25
Hello,

I have parent class with id as follows:

<id name="id" column="EXPENSE_ID">
<generator class="hilo" />
</id>

There are two union subclasses extending this class. We use MS SQL and identity is set off on these tables.

But instead of taking next_hi value from hibernate_unique_key table, it is generating next value based on earlier primary key value on two sub classes. Is this correct behaviour? So even though next_hi is 255, it is generating primary key like 45435345, 45435346 etc.

Thank you


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.