-->
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: Best way to execute code after successful save/retrieve
PostPosted: Thu Nov 06, 2003 11:03 am 
Newbie

Joined: Tue Oct 14, 2003 3:05 pm
Posts: 4
I'm curious as to the best place to put some code that I want to execute after save or retrieve completes. Currently I have done this in the Interceptor's onSave and onLoad methods, but these are called BEFOR save or load is completed. I believe I could cache all the objects I receive in onLoad or onSave and then iterate over them in postFlush, but is postFlush called after the objects has been successfully saved/retrieved? Also, how do I know that the postFlush was part of a save or load transaction.


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.