-->
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's onFlushDirty() not invoked on session.update()
PostPosted: Wed May 11, 2005 5:43 pm 
Newbie

Joined: Tue Apr 19, 2005 4:32 pm
Posts: 14
Hibernate version: 3

I have a multi-tier web application where the presentation tier is first retrieving an object and then saving it after making changes to it.

On the server, I have a stateful session bean that keeps a reference to the object when it is first retrieved and then updates the same with the changes received from the presentation tier and invokes session.update(). At this point, I expect my interceptor's onFlushDirty() method to be invoked, but that never happens!

A call to session.contains(object) just before session.update() returns TRUE implying that the object is definitely in the session at that point.

Does anybody have any ideas as to why onFlushDirty is not invoked?

Thanks, Rishabh


Top
 Profile  
 
 Post subject: SOLVED
PostPosted: Thu May 12, 2005 10:46 am 
Newbie

Joined: Tue Apr 19, 2005 4:32 pm
Posts: 14
I apologize about the earlier post. My interceptor's findDirty() method wasn't implemented correctly and was causing Hibernate to think the entity wasn't updated.


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.