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: disabling dirty checking for certain fields/column
PostPosted: Thu Mar 24, 2005 10:43 am 
Newbie

Joined: Thu Mar 24, 2005 10:32 am
Posts: 1
    Hibernate will update only those objects to database where there is a change in any field value. For e.g. An object Test has three fields
Code:
class Test {
int a;
int b;
int lastModifiedTime;
}


    if any of this has changed then
    Code:
    session.saveOrUpdate()
    will update the value.
    But it doesnt make sense to update value to database when lastModifiedTime is the only value that has changed. Is there a way to tell hibernate that dont update the object if some fields (like
    lastModifiedTime) has changed using some attributes in xml or otherwise??


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