Beginner |
 |
Joined: Wed Apr 13, 2005 2:03 pm Posts: 34
|
Hibernate 3.0
MySQL
ThreadLocal session objects
I have a session upon which I attach an interceptor.
When I call:
Session.save(object)
The interceptor's onSave method runs for new objects and onFlushDirty runs for updated objects.
When I call:
Session.update(object)
or
Session.replicate(object, ReplicationMode.OVERWRITE)
Neither onSave nore onFlushDirty seems to run. Is this a bug of some sort? Or is there an alternate way to trap update or replicaiton events?
|
|