-->
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: TableGenerator Implementation Questions
PostPosted: Tue May 25, 2004 8:01 am 
Beginner
Beginner

Joined: Wed May 12, 2004 2:52 pm
Posts: 36
I am curious why the TableGenerator returns the current hi value instead of the value created by the update.

If I have a sequence table with the value of 2 in it, the table generator will return 2 and update the table, setting its value to 3.

Why not return 3 to the application? I am sure there was a reason behind this decision. Could you please enlighten me?


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 25, 2004 8:05 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
The hi-table just stores the next hi-value, not the last used one.


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.