-->
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.  [ 2 posts ] 
Author Message
 Post subject: PostInsertListener + "post-commit-insert"
PostPosted: Fri Mar 10, 2006 7:22 pm 
Newbie

Joined: Mon Jan 16, 2006 4:33 am
Posts: 11
Hi,

I'm using a custom PostInsertEventListener mapped to the "post-commit-insert" event to process domain objects. However, PostInsertEventListener's onPostInsert(PostInsertEvent) is getting called even when the insert was not successful (ie, due to a unique constraint in the database or some such).

This question was already asked here but received no response: is this expected behavior? It looks to me like Hibernate should either a) not invoke the event listener if the insert failed or b) provide state (perhaps in the form of a boolean indicating success/failure).

The relevant code is in EntityInsertAction.afterTransactionCompletion(boolean), though the same thing happens in EntityDeleteAction and EntityUpdateAction.

Can one of the devs address this?

Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 19, 2006 5:36 pm 
Newbie

Joined: Mon Jan 16, 2006 4:33 am
Posts: 11
No one seems to know the answer to this one... filing this as a bug: http://opensource2.atlassian.com/projec ... e/HHH-1582


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

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.