protected boolean invokeUpdateLifecycle(Object entity, EntityPersister persister, EventSource source) { if ( persister.implementsLifecycle() ) { LOG.debug( "Calling onUpdate()" ); if ( ( (Lifecycle) entity ).onUpdate( source ) ) { LOG.debug( "Update vetoed by onUpdate()" ); return true; } } return false; }
protected boolean invokeUpdateLifecycle(Object entity, EntityPersister persister, EventSource source) { if ( persister.implementsLifecycle( source.getEntityMode() ) ) { log.debug( "calling onUpdate()" ); if ( ( ( Lifecycle ) entity ).onUpdate(source) ) { log.debug( "update vetoed by onUpdate()" ); return true; } } return false; }
protected boolean invokeUpdateLifecycle(Object entity, EntityPersister persister, EventSource source) { if ( persister.implementsLifecycle() ) { LOG.debug( "Calling onUpdate()" ); if ( ( (Lifecycle) entity ).onUpdate( source ) ) { LOG.debug( "Update vetoed by onUpdate()" ); return true; } } return false; }
protected boolean invokeUpdateLifecycle(Object entity, EntityTypeDescriptor entityDescriptor, EventSource source) { if ( entityDescriptor.implementsLifecycle() ) { LOG.debug( "Calling onUpdate()" ); if ( ( (Lifecycle) entity ).onUpdate( source ) ) { LOG.debug( "Update vetoed by onUpdate()" ); return true; } } return false; }
protected boolean invokeUpdateLifecycle(Object entity, EntityPersister persister, EventSource source) { if ( persister.implementsLifecycle() ) { LOG.debug( "Calling onUpdate()" ); if ( ( (Lifecycle) entity ).onUpdate( source ) ) { LOG.debug( "Update vetoed by onUpdate()" ); return true; } } return false; }
if ( ( ( Lifecycle ) entity ).onUpdate(source) ) { log.debug( "update vetoed by onUpdate()" ); reassociate( event, event.getObject(), event.getRequestedId(), persister );