This is interesting, implementing IInterceptor directly rather than subclassing EmptyInterceptor works.
On Mar 19, 8:53 am, Fabio Maulo <[email protected]> wrote: > IInterceptor.IsTransient is not used for "transient" checking during Save > and SaveOrUpdate. > > 2009/3/19 epitka <[email protected]> > > > > > > > Ok, so now that I verified that I need to see why my interceptor is > > not being called. Very strange, I open a session and pass in > > interceptor via constructor. Interceptor inherits from > > EmptyInterceptor. That should be it, I guess. I should get a call to > > at least one of the methods, but I am not. So, I am going to have to > > do some NH debuging. > > > Thanks for your help Fabio. > > > On Mar 19, 8:27 am, Fabio Maulo <[email protected]> wrote: > > > 2009/3/19 epitka <[email protected]> > > > > > Ok, I'll look into it. But now I am intrigued why interceptor is not > > > > being called. I am just trying to understand how to implement > > > > interceptor. For intereceptor to work I don't have to override any > > > > listeners or? > > > > No you don't... but then you can know the IInterceptor limitations and > > its > > > life end there. > > > For something we have events/listeners > > > > -- > > > Fabio Maulo > > -- > 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 -~----------~----~----~----~------~----~------~--~---
