• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate Interceptors, getting old values

 
Selvaraj Chennappan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> 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?
>
> Thanks in advance,
>
> Selvaraj
[ December 26, 2006: Message edited by: Mark Spritzler ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic