-->
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: Table Hi Lo generator funny values being returned
PostPosted: Wed Apr 27, 2005 8:33 pm 
Newbie

Joined: Wed Apr 27, 2005 8:19 pm
Posts: 1
Location: New Zealand
Hibernate version:3.0.2

Mapping documents:
<generator class="org.hibernate.id.TableHiLoGenerator">
<param name="table">web_cache_lock</param>
<param name="column">next_unique_id</param>
</generator>


MS SQL Server 2000:

Spring 1.2rc1


create table web_cache_lock(
current_unique_id int(10) not null,
line_num int(10),
lock_flag char(1),
next_unique_id int(10))



new hi value: 361628:
generated identifier: -1035075584, using strategy: org.hibernate.id.TableHiLoGenerator

Any ideas why I'm not getting 361628 as a generated value?


Dave

_________________
Dave Jenkins


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.