-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: IInterceptor implementation that throws an Exception
PostPosted: Tue Nov 14, 2006 8:36 am 
Newbie

Joined: Tue Oct 24, 2006 2:51 pm
Posts: 19
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!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.