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: NHibernate DeleteEventListener on save with one to many bag
PostPosted: Tue Mar 09, 2010 9:55 am 
Beginner
Beginner

Joined: Fri Sep 26, 2008 9:19 am
Posts: 20
Location: Belgium
Hi,

Let's suppose my application is an order with Items, then i would like to open an order, delete an item and save again.
Now for changelog purposes i would like to be able to see that removed item.

what my thought was at first, is that the deleted item should pass through the Custom delete event added to the sessionfactory. That doesn't seem to work...
should it work? It's not doing that over here :)

Code:
cfg.EventListeners.DeleteEventListeners = new IDeleteEventListener[] { new CustomDeleteEventListener() };


my guess would be seeing the Item go through the OnDelete Method...


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.