-->
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: Incremental update of changed properties with out loading
PostPosted: Mon Sep 22, 2003 2:04 am 
Beginner
Beginner

Joined: Tue Aug 26, 2003 2:47 pm
Posts: 21
Does hibernate provide a mechanism to update only the modified properties (columns) with out loading the data. If an object with only modified attributes and the unique identifier is given to the hibernate (no values set for other attributes), would hibernate generate query to update only the passed in attributes.

this would help us no to load the data and just pass in the object with only the changed attributes (properties).

I could not find any information on this. I had tried to update a table only with few modified attributes and hibernate updated the other columns which were not modified as well when I set the dynamic-update to 'true". Basically the values of other columns were wiped out.

One way is to load the values of all the columns of the table and set the modified attributes and save.
The other mechanism I can think of is to map multiple classes to the same table and do the updates as required. But I am not sure whether this can be done.

thanks,
TM

_________________
TM


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.