-->
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: About auto-dirty-check strategy
PostPosted: Sun Jun 05, 2005 10:01 pm 
Newbie

Joined: Sat Jun 04, 2005 4:32 am
Posts: 1
As we all know hibernate use inspection as dirty-check strategy. In the flushing process of session, hibernate will inspect all the persistent object( associated with the session) to make sure if the object is dirty. my questions are
1) how to judge a persistent object is dirty or not. Does hibernate do this by comparation to the column in the database or snapshot, what the snapshort really means in the context of a session.
2) Suppose there is a large amout of persistent objects in the session, that will be a time-consuming work. is this right?
3) If there is a object graph framework, all the changes in the graph can be observed, thus we can get a change summary of the object graph, and we can tell hibernate only persist the changes. that's is to say auto-dirty-check in hibernate is of no use,so there is no need to call flush method of the session. is this right?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 06, 2005 6:14 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
1) yes
2) it depends of "large", read the batch processing in the reference guide
3) have a look at FlushMode in de reference guide

_________________
Emmanuel


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.