I want to intercept deletion of the "root" of the hierarchy, create hql for the whole graph, and than execute deletes for each type of the child in the hierarchy ending up with only 14 delete statements with IN clause, rather than 1000's of deletes.
On Sep 20, 1:39 pm, Jason Dentler <[email protected]> wrote: > I still don't have a clear idea of the problem you are trying to solve. > > > > On Mon, Sep 20, 2010 at 1:36 PM, epitka <[email protected]> wrote: > > I abandoned IOneShotDeleteHandler, trying now with > > DeleteEventListener. If I cannot delete through NH without deadlocking > > entire db, and I cannot suppress deletes issued by NH what else is > > left. Leave NH and do straight ado.net for the deletes? > > > On Sep 20, 1:14 pm, Fabio Maulo <[email protected]> wrote: > > > I'm inclined to think that your are still fighting with > > > OneShotDeleteHandler. > > > > I have looked to that post and I would know if you read the end of the > > post > > > and then understand which is your real problem (I mean the root problem > > and > > > not the problem caused by what you think is the solution). > > > This is the conclusion of that post: > > > "Make sure you use this solution for one-shot deletes wisely and only if > > you > > > have to. If you can use the CASCADE DELETE foreign key constraints, then > > by > > > all means, this is the preferred option." > > > > On Mon, Sep 20, 2010 at 3:02 PM, epitka <[email protected]> wrote: > > > > Is this supposed to work?. I try evicting items in the DeleteEvent > > > > Listener but NH still reports them as in session. > > > > > -- > > > > 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]<nhusers%[email protected] > > > > > > > <nhusers%[email protected]<nhusers%252bunsubscr...@googlegroup > > s.com>> > > > > . > > > > For more options, visit this group at > > > >http://groups.google.com/group/nhusers?hl=en. > > > > -- > > > 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]<nhusers%[email protected] > > > > > . > > For more options, visit this group at > >http://groups.google.com/group/nhusers?hl=en. -- 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.
