> In my project need to maintain History something likes auditLogging.so
> I wrote AuditLogInterceptor class it has four methods
>
> boolean onFlushDirty(Object entity, Serializable id, Object[]
> newValues, Object[] oldValues,String[] properties, Type[] types)
>
> int[] findDirty(Object entity, Serializable id, Object[] newValues,
> Object[] oldValues, String[] properties, Type[] types)
>
> void onSave(Object entity, Serializable id, Object[] newValues,
> String[] properties, Type[] types)
>
> void postFlush(Iterator arg)
>
> whenever use update function I couldn’t able get oldvalues
> consistently. But I need this How
>
> can I get old values consistenly?.Could you please help me?
|