i have the same problem when creating a IPostUpdateEventListener
(allthough i assume they are all the same).
OldState is always null.

did you create a Jira issue? (i couldn't find one)

this is actually holding us up from making our deadline to pass the
product to the testers

On Jun 1, 6:00 pm, Arman <[email protected]> wrote:
> so any other idea why previousState is null ?
>
> On May 31, 2:54 pm, Tuna Toksoz <[email protected]> wrote:
>
>
>
> > Oh, never mind, was thinknig something else.
>
> > Tuna Toksöz
> > Eternal sunshine of the open source mind.
>
> >http://devlicio.us/blogs/tuna_toksozhttp://tunatoksoz.comhttp://twitt...
>
> > On Sun, May 31, 2009 at 2:45 PM, Arman <[email protected]> wrote:
>
> > > what kind of test ?
>
> > > On May 31, 11:26 am, Tuna Toksoz <[email protected]> wrote:
> > > > a test case would be cool.
>
> > > > Tuna Toksöz
> > > > Eternal sunshine of the open source mind.
>
> > >http://devlicio.us/blogs/tuna_toksozhttp://tunatoksoz.comhttp://twitt...
>
> > > > On Sun, May 31, 2009 at 11:23 AM, Arman <[email protected]> wrote:
>
> > > > > i did it as you show me on your code , but what do you think !?
> > > > > OldState is null !!!!!!
>
> > > > > something should be wrong in my code..
>
> > > > > On May 31, 10:29 am, Craig van Nieuwkerk <[email protected]> wrote:
> > > > > > Not sure, but if you see the code I emailed you it has the previous
> > > > > state.
>
> > > > > > On Sun, May 31, 2009 at 5:27 PM, Arman <[email protected]>
> > > wrote:
>
> > > > > > > thanks craig ,
>
> > > > > > > so any idea why previousState is null ?
>
> > > > > > > On May 31, 3:13 am, Craig van Nieuwkerk <[email protected]> wrote:
> > > > > > >> Email me on [email protected] and I will send you some code that
> > > > > works.
>
> > > > > > >> On Sun, May 31, 2009 at 3:17 AM, Arman <[email protected]>
> > > > > wrote:
>
> > > > > > >> > actually OnFlushDirty is good but as i said it's PreviousState
> > > > > > >> > parameter is null ,
> > > > > > >> > i know that there is a parameter named "previousState" and a
> > > > > parameter
> > > > > > >> > named "currentState" , i should compare them together to 
> > > > > > >> > findOut
> > > > > dirty
> > > > > > >> > properties , but it's null !!! and in some cases that it is not
> > > null
> > > > > ,
> > > > > > >> > it is the same as the currentState !
> > > > > > >> > so i confused !
>
> > > > > > >> > On May 30, 4:39 pm, Fabio Maulo <[email protected]> wrote:
> > > > > > >> >> If you like interceptor OnFLushDirty has all you need.
>
> > > > > > >> >> 2009/5/30 Arman <[email protected]>
>
> > > > > > >> >> > actually i got with a new problem,
>
> > > > > > >> >> > the interceptor is a good idea , but i can not find out 
> > > > > > >> >> > dirty
> > > > > > >> >> > properties with it's methods. there is a FindDirty and
> > > > > OnFLushDirty
> > > > > > >> >> > method , and also there is previousState parameter on it ,
> > > but
> > > > > this
> > > > > > >> >> > parameter always is null !!! and there is nothing to be
> > > compared
> > > > > in
> > > > > > >> >> > FindDirty method to find out what property changed. i know
> > > > > NHibernate
> > > > > > >> >> > store object state in session , i want to somehow access to
> > > it
> > > > > and for
> > > > > > >> >> > example log this " User a Changed the Lastname of Person x".
>
> > > > > > >> >> > any idea ?
>
> > > > > > >> >> --
> > > > > > >> >> Fabio Maulo

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to