:31 AM
Subject: Re: Why AR is Updating When Performing a Select
you can add an PreUpdateEventListener and compare the cached and actual
object states to find the changes.
-Markus
2009/7/9 Cesar Sanz the.email.tr...@gmail.com
Hello markus and Thanx
using (new SessionScope
When AR/NH loads entities, it puts them into a cache. When the
session(scope) disposes, the objects in the cache are checked whether they
have been changed and the changes are written back (flushed) to the DB.
Normally, if there is no change in the objects, nothing happens (the
entities are not
-users@googlegroups.com
Sent: Thursday, July 09, 2009 12:02 AM
Subject: Re: Why AR is Updating When Performing a Select
When AR/NH loads entities, it puts them into a cache. When the session(scope)
disposes, the objects in the cache are checked whether they have been changed
and the changes
to check if my
entity is dirty? Can NHibernate shows me
the changes...
Thanx for answering
- Original Message -
*From:* Markus Zywitza markus.zywi...@gmail.com
*To:* castle-project-users@googlegroups.com
*Sent:* Thursday, July 09, 2009 12:02 AM
*Subject:* Re: Why AR is Updating
Sent: Thursday, July 09, 2009 9:31 AM
Subject: Re: Why AR is Updating When Performing a Select
you can add an PreUpdateEventListener and compare the cached and actual
object states to find the changes.
-Markus
2009/7/9 Cesar Sanz the.email.tr...@gmail.com
Hello markus and Thanx
Hello..
I am in a hurry cuz I have to release a small project.
I use AR for this project, my model is simple,
[Client] has many [Product]
This is used in a web application, so a new session is opened on each
request.
The point is.. when I perform a Client.FindAll() it select all the
clients