-->
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: unecessary columns being updated
PostPosted: Thu Jul 22, 2004 5:06 pm 
Beginner
Beginner

Joined: Thu Feb 26, 2004 11:32 am
Posts: 32
I am using hibernate-2.1 with Oracle 8i.I have a large table with around 50 columns.Even if I update only one column and try to update the object, I see an update statement in my hibernate-log trying to update all the 50 columns. Is there a way to avoid this problem.

I am using session.update(obj) method to update my data.


tia

splash


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 22, 2004 6:43 pm 
Regular
Regular

Joined: Tue Oct 07, 2003 10:20 am
Posts: 77
Have you set the dynamic-update property of the class?

See http://www.hibernate.org/hib_docs/reference/en/html/mapping.html#mapping-declaration-class for more information.


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.