-->
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: Hibernate callback safety
PostPosted: Mon Sep 15, 2014 9:14 pm 
Newbie

Joined: Mon Sep 15, 2014 8:12 pm
Posts: 2
We have a need to capture some additonal information about some of the changed entities during "beforeTransactionCommit, postFlush, onLoad, onDelete, onSave, onFlushDirty". This require us to use the Hibernate session to do queries, and also in the beforeTransactionCommit callback to write data to the database. From what we understand this is not recommended.

So the question is,
Is there a safe way to use hibernate session from any of the the above callback points?

If there a better options to capture additional information other than using the above callbacks, please let me know.

Thanks in advance.

Regards,
Vinoo


Top
 Profile  
 
 Post subject: Re: Hibernate callback safety
PostPosted: Tue Sep 23, 2014 1:46 pm 
Newbie

Joined: Mon Sep 15, 2014 8:12 pm
Posts: 2
bump!


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.