-->
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: Hibernate sets columns to null
PostPosted: Tue Dec 23, 2003 6:12 am 
Newbie

Joined: Tue Dec 23, 2003 6:05 am
Posts: 2
Hi all,
could anyone tell me when/why hibernate sets to null some fields on a database, without a session.save call ?
It is happened to me and unfortunately I dont'know how to reproduce it:
it seem that after manually recreating a table (mapped on a hibernate bean) while my webapp was running, some fields on other tables were
set to null!! These fields were non referenced by keys/relationships but
just descptions, etc...

Thanks

Davide


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 23, 2003 6:30 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Hibernate will not change the data without it getting instructions directly or implied by the mapping document (such as a cascading action).


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 23, 2003 6:38 am 
Newbie

Joined: Tue Dec 23, 2003 6:05 am
Posts: 2
Ok,
but could a manual action on the database cause a hibernate cache
inconsistency as happens with the EJB commit A option ?


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.