-->
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: Update only changed columns
PostPosted: Sat Feb 26, 2005 1:50 am 
Newbie

Joined: Fri Jan 09, 2004 5:41 pm
Posts: 14
Read the rules before posting!
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:
2.1.8


Just a general question I can't seem to find an answer to anywhere else. When I do a saveOrUpdate, I can see the generated sql update statement updates every single column. Is it possible to have it only update columns that have changed?

We have a lot of triggers for auditing and I'm concerned that they will not work as expected or have to be modified to check the before/after values for every column to see which ones really were updated.

THanks,
-scott


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 26, 2005 9:36 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
dynamic-update="true", probably combined with select-before-update="true" when you are doing detatched object.


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.