nhibernateisession

Is there a way to find saved items when using SaveOrUpdate method in nhibernate?


Is there a way to find saved items when using SaveOrUpdate method in hibernate. Basically, I need to know if an item is just updated or it is actualy inserted within one session.

Thansk.


Solution

  • Have a look at NHibernate interceptors.

    Implementing NHibernate Interceptors

    Interceptors