NHibernate 1.2.1.beta1
I'm implementing a dependency-check system using the IInterceptor Interface
I raise a DependencyCheckException (my own custom class) exception in a IInterceptor.Ondelete() method, i noticed that the exception goes trough stack and was not captured by Nhibernate itself
Is tihis a correct method to STOP the delete action? i took a peek at source code, but i cannot say if the exception situation may leave some dirty or stale state that the SessionImpl.DoDelete() has done
(In particular, there is a call to TypeFactory.DeepCopy() that i don't know what operations do...)
And, If everything is ok in a Session.Delete(object) scenario, may i have problems in a situation where there is a nested-deletion (cascade="all-delete-orphan", for example)
Thanks in advance!
|