-->
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: howto use id_value for unsaved-value
PostPosted: Thu Nov 06, 2003 5:50 am 
i can't get any hint what i can do with the "id_value" in combination with the unsaved-value for id's.

any help would be nice!
cheers,
blip


Top
  
 
 Post subject:
PostPosted: Thu Nov 06, 2003 6:10 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Lets say the POJO uses an int for the id. Thene the mapping could be unsaved-value="0" which allows the id generator to create an id for the object if the value is 0. If you have a POJO id setup as a java.lang.Long then you can say unsaved-value="null".


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.