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: updating only the changes
PostPosted: Tue Jun 15, 2004 5:08 pm 
Newbie

Joined: Thu May 20, 2004 6:44 pm
Posts: 4
Location: USA
I understand if I call saveOrUpdateCopy() in a detached session, a load is performed and only the changes are updated in the database. If I am tracking the propery changes in my object, is there any way to tell hibernate what what properties to update in the database and skip the load. If not, it will be a nice feature to have

_________________
Pranab Ghosh


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 16, 2004 1:17 pm 
Beginner
Beginner

Joined: Mon Jun 07, 2004 4:21 pm
Posts: 44
Location: Boston
Section: 5.1.3 in the reference manual - dynamic-update might solve your problem. This specifies that UPDATE SQL should be generated at runtime and contain only those columns whose values have changed.


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.