// this implementation is supposed to tolerate incorrect unsaved-value // mappings, for the purpose of backward-compatibility EntityEntry entry = event.getSession().getPersistenceContext().getEntry( event.getEntity() ); if ( entry!=null && entry.getStatus() != Status.DELETED ) { return entityIsPersistent(event); } else { return entityIsTransient(event); }
if ( !Hibernate.isInitialized(object) ) { throw new PersistentObjectException("uninitialized proxy passed to save()"); } else { return false; }
if ( event.getRequestedId() == null ) { return super.saveWithGeneratedOrRequestedId(event); } else { return saveWithRequestedId( event.getEntity(), event.getRequestedId(), event.getEntityName(), null, event.getSession() ); }