In a persistent object, If i change only one field, Is it possible to find out the changed field only through Hibernate?
I know I can get the entire old row and new row and compare.
In a persistent object, If i change only one field, Is it possible to
Share
One option is to hook into Hibernate’s event system (see docs). For example, if you registered to receive
FlushEntityEvent, then you’d be informed as to which columns were changing via thegetDirtyPropertiesmethod of the event.