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
|