Hi,
I have created a Simple Interceptor where I handle the onFlushDirty method call.
I am invoking saveOrUpdate method on session. And when onFlushDirty method on the Interceptor is invoked by the Hiberante, previousState parameter is null. I even tried by setting the attribute select-before-update="true" but without luck.
While going through the hibernate source code I figured out in both these cases Hibernate gets the databaseSnapshot but never send it to Interceptor.
Does anyone know why is the previousState null and are there any design considerations due to which they are not sending the values even though they have them for saveOrUpdate and select-before-update="true" cases.
If I make changes to the Hibernate source code so that they pass the databaseSnapshot to Interceptor as previousState, will it break something?
Regards,
Mahen
|