-->
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.  [ 1 post ] 
Author Message
 Post subject: Hibernate updating null values to NULL in the database
PostPosted: Mon May 16, 2005 3:19 pm 
Newbie

Joined: Wed Apr 06, 2005 1:13 pm
Posts: 13
Hi all,

I does not know if I was understanting this wrong, but im my opinion when I call the UPDATE method on the Hibernate session, I want the Hibernate to UPDATE all fields that is not null and the fields that are NULL i want to stay with the values that are in the database.

Is there any way to do this ??

Imagine that I construct the POJO from a HTML form and for example I do not have the CREATION_TIMESTAMP field on the form. I will need to make a SELECT on the DB to retrieve the field and then call UPDATE with the field filled???

Thanks


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

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.