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.
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.
Have a look at NHibernate interceptors.
Implementing NHibernate Interceptors
Interceptors