vjhiber wrote:
I am trying to compare old object values with new values using prevState parameters in hibernate interceptor function
public boolean onFlushDirty(Object entity, Serializable id, Object[] currState, Object[] prevState, String[] propertyNames, Type[] types) throws CallbackException
I have experienced that prevState parameter is always null.
Since it is null I retrieved the old state from database, however for the properties that are of collection type, the old state is already updated.
Any pointers on
1) why this prevState would be null
2) why would the collection property in database would already be in new state.
Hi ,
I have the same problem. Did you ever find an answer to this?