Hi,
I am using Hibernate version:3.0.5, and thought of using a "pre-insert and pre-update" event listeners to set some audit information set like timestamp for the insert/update, the listener is executed, the value is set, but it doesnt propogates to the DB. Is that a issue of the object changing the state, like values from the object were copied in some other variable and the values from the current object are not being used in the sql insert/update which got modified in these listeners.?
Is "Interceptors" the only choice here or this can be achieved by the event listeners.
Thanks
Vijay
|