I have an Hibernate Interceptor setting audit info on pojos, two atributes for save and other two for updates.
It looks working fine, but when an object only passes by onSave method, the save audit columns are not being inserted. If the object passes by onSave and onFlushDirty, both save and update audit columns are being inserted.
My interceptor extends EmptyInterceptor and if I debug it, the code setting the audit info in onSave it's executed. Then, when querying the database, it's not there.
I've been looking in forums and Hibernate docs, but I can't find anything related to this problem.
Any help would be appreciated.
Thanks in advance,
Dafne.
|