-->
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: Interceptor seems to not be working
PostPosted: Sat Jan 12, 2008 9:09 am 
Newbie

Joined: Sat Jan 12, 2008 8:44 am
Posts: 2
Let me start out by saying I have googled this problem for hours and searched this forum also.

I have a session factory scoped interceptor and can't seem to get the onFlushDirty, onDelete or onSave to ever fire, even though postFlush fires with all the entities that are persisted. beforeTransactonComplete also fires properly.

Is it possible that hibernate batching, batched versioned updates or some other feature would impact this?

I am not explicitely opening the session, but using the getCurrentSession() to implicitly open it, so I cannot specify the interceptor when the session is opened, which is why I am using the factory scoped version.

Conversely if someone can tell me what I can do in postFlush to know which entities are new, updated or deleted that would also solve my problem.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 12, 2008 9:44 am 
Newbie

Joined: Sat Jan 12, 2008 8:44 am
Posts: 2
After more investigation what is changing is a set related to the object being changed. Looks like the onFLushDirty is not fired at all in that condition. I think I remember other people complaining about that but I don't remember any solution, if any. I will read through the forum again.


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.