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.  [ 3 posts ] 
Author Message
 Post subject: return code of saveorupdate
PostPosted: Mon May 08, 2006 10:38 am 
Newbie

Joined: Tue May 02, 2006 10:22 pm
Posts: 8
After I execute saveorupdate, can I check the return code (i.e. successful or failed)?


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 08, 2006 2:40 pm 
Regular
Regular

Joined: Wed Jul 27, 2005 2:33 am
Posts: 118
If the saveorupdate resulted in a failure then a exception will be thrown. If it succeeded then there wont be any exception. This can be used as an indication of success/failure.


Top
 Profile  
 
 Post subject: Audit trail using postupdateeventlistener
PostPosted: Mon May 08, 2006 9:23 pm 
Newbie

Joined: Tue May 02, 2006 10:22 pm
Posts: 8
Actually I want to do audit trail using postupdateeventlistener, but the problem is I find the event will be triggered even if the update is not successful (e.g. primary key constraint violation)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.