Hi,
I am using Spring 1.2 with Hibernate 3.0. I am using Interceptor to detect changes in entity attributes between two revisions for Insert, Update, and Delete operations.
The changes will be persisted to table.
I have extended EmptyInterceptor and have overridden for update operation the onFlushDirty method. My interceptor was injected onto spring's localsessionfactorybean and is invoked as expected.
What I find that is that in my onFlushDirty method, myCurrentState argument holds the most recent values but the myPreviousState argument holds null.
I don't know how to get both my old values and new values for a persistent operation. Can anyone please help?
Thanks,
|