-->
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: Event IPreInsertEventListener does not fire before not-null
PostPosted: Sun Dec 27, 2009 2:56 pm 
Newbie

Joined: Sun Dec 27, 2009 2:48 pm
Posts: 1
Under NHibernate 2.0, I used an audit event listener that Ayende had put together (http://ayende.com/Blog/archive/2009/04/29/nhibernate-ipreupdateeventlistener-amp-ipreinserteventlistener.aspx) and it does not appear to be working in the current 2.1.2 implementation when the CreateBy fields are left empty (NULL) with the expectation that these would be populated by the event listener.

The events DO fire if I change the configuration to allow these columns to be NULL even though the database will not allow it. I would have expected the Pre- events to fire before these checks to be able to manage the data and then validate. Is this not correct?


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.