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: NHibernate and dirty objects
PostPosted: Wed Aug 30, 2006 7:31 pm 
Newbie

Joined: Tue Aug 01, 2006 12:42 pm
Posts: 11
Hello All,

I'm a newbie with NH, and I was wondering if someone could point me towards some documentation on the topic of dirty objects.

My understanding is that the session serves as the 1st level cache of objects for NH. Some of these objects (which are just in memory CLR objects) might be dirty (ie. have had they're member data changed) and some may not.

My question is: how does does NH know which objects are dirty, and which are not, which it comes time to flush the session?

It could keep a list of dirty objects, but unless there is some magic interception going on (for example through proxies) or it is somehow comparing every property of an object with a shadow copy original that it keeps (which presumably would be terrible for performance) I'm not sure how this would work - unless it writes out every object in the session, which I haven't observed.

Any pointers to documentation or information is most appreciated. Thanks to all.


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.