isDirty
Last updated
Was this helpful?
Verifies if the passed in entity has dirty values or not since loaded from the database.
This function returns true if the entity values have been changed since loaded into the hibernate session, else false
entity
Any
Yes
---
The entity object
if( ormService.isDirty( entity ) ){
// The values have been modified
log.debug( "entity values modified", ormService.getDirtyPropertyNames( entity ) );
}Last updated
Was this helpful?
Was this helpful?