protected boolean invokeSaveLifecycle(Object entity, EntityPersister persister, EventSource source) { // Sub-insertions should occur before containing insertion so // Try to do the callback now if ( persister.implementsLifecycle() ) { LOG.debug( "Calling onSave()" ); if ( ((Lifecycle) entity).onSave( source ) ) { LOG.debug( "Insertion vetoed by onSave()" ); return true; } } return false; }
protected boolean invokeSaveLifecycle(Object entity, EntityPersister persister, EventSource source) { // Sub-insertions should occur before containing insertion so // Try to do the callback now if ( persister.implementsLifecycle( source.getEntityMode() ) ) { log.debug( "calling onSave()" ); if ( ( (Lifecycle) entity ).onSave(source) ) { log.debug( "insertion vetoed by onSave()" ); return true; } } return false; }
protected boolean invokeSaveLifecycle(Object entity, EntityPersister persister, EventSource source) { // Sub-insertions should occur before containing insertion so // Try to do the callback now if ( persister.implementsLifecycle() ) { LOG.debug( "Calling onSave()" ); if ( ( ( Lifecycle ) entity ).onSave( source ) ) { LOG.debug( "Insertion vetoed by onSave()" ); return true; } } return false; }
protected boolean invokeSaveLifecycle(Object entity, EntityTypeDescriptor descriptor, EventSource source) { // Sub-insertions should occur before containing insertion so // Try to do the callback now if ( descriptor.implementsLifecycle() ) { LOG.debug( "Calling onSave()" ); if ( ((Lifecycle) entity).onSave( source ) ) { LOG.debug( "Insertion vetoed by onSave()" ); return true; } } return false; }
protected boolean invokeSaveLifecycle(Object entity, EntityPersister persister, EventSource source) { // Sub-insertions should occur before containing insertion so // Try to do the callback now if ( persister.implementsLifecycle() ) { LOG.debug( "Calling onSave()" ); if ( ( ( Lifecycle ) entity ).onSave( source ) ) { LOG.debug( "Insertion vetoed by onSave()" ); return true; } } return false; }
if ( ( (Lifecycle) entity ).onSave(source) ) { log.debug( "insertion vetoed by onSave()" ); return id;