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.  [ 2 posts ] 
Author Message
 Post subject: saving anything returns negative ID
PostPosted: Tue Mar 22, 2005 11:23 am 
Newbie

Joined: Thu Jun 03, 2004 8:57 am
Posts: 8
Did a large data import last night through stored procedures, and today anything we save to the database is saved with a negative ID.
(ex: -1483341821)

we pull the value from the hibernate_unique_key table whenever we insert an ID (we have done this import many times before with these stored proceudres, without getting the negative ID problem)

we use generator class="hilo"

what is Hibernate unhappy about?

thanks

Paul



Hibernate version:
2.1
Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using:
SQL Server 2000
The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:


Top
 Profile  
 
 Post subject: clarification
PostPosted: Tue Mar 22, 2005 11:29 am 
Newbie

Joined: Thu Jun 03, 2004 8:57 am
Posts: 8
to clarify...in our stored procedures, we take the current value of hibernate_unique_key, incrememnt by 1, and then set next hi to the new value, each time we get an id


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

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.