-->
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.  [ 3 posts ] 
Author Message
 Post subject: Need help on Assigned Identifiers
PostPosted: Thu Mar 11, 2004 11:36 pm 
Newbie

Joined: Thu Mar 11, 2004 11:30 pm
Posts: 9
hi,

i am using hibernate version 2.1.2.

i like to know what can be the best value for "usaved-value" attribute for assigned identifiers. Also i want to perform optimistic locking on the tables, so how can i use version element if i use "assigned identifiers".

Thanks.

Lokesh.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 12, 2004 2:34 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Use the <version unsaved-value=/> it exactly fits your needs.
If version is a primitive, use negative,
use null otherwise

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 13, 2004 8:55 am 
Newbie

Joined: Thu Mar 11, 2004 11:30 pm
Posts: 9
Hi emmanuel,

Thanks for the reply, i added <version unsaved-value="negative"> and it works for me.

Lokesh.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.