Hi, I’ve been trying to use the interceptor, but the
previousState is populated only when inserting. Never on an update. For both
onFlushDirty() and findDirty() methods. Is this supposed to be normal behavior? I was trying to do the same thing the documentation is
doing - set the current timestamp on a lastModifiedDate column. But I wanted
to make sure that something changed on that instance before setting the
lastModifiedDate. For that I was trying to compare the value on the
currentState[i] with previousState[i]. Thanks, Marcelo. |
- [Hibernate] Interceptor Caldas, Marcelo
- Re: [Hibernate] Interceptor Emmanuel Bernard