-->
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: unsaved-value
PostPosted: Wed Oct 15, 2003 1:23 pm 
Newbie

Joined: Sun Sep 07, 2003 8:46 pm
Posts: 10
Which unsaved value setting should be used with a class that has an assigned identifier (pkey).

If I use null then when the record exists I get an error and if I use an any then I get an error when the value is assigned and saved.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 15, 2003 1:32 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
I would say that if you assigned it manually, you know if the object has to be updated or inserted, no ? So use save() Or update() instead of saveOrUpdate().


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.