not all of them were intended to be pushed

This commit is contained in:
Steve Ebersole 2017-11-28 09:27:09 -06:00
parent 58781056a9
commit 2dd23e143e
3 changed files with 0 additions and 25 deletions

View File

@ -142,10 +142,6 @@ public final class Cascade {
);
}
else {
if ( action == CascadingActions.DELETE ) {
}
if ( action.requiresNoCascadeChecking() ) {
action.noCascade(
eventSource,

View File

@ -14,7 +14,6 @@ import org.hibernate.TransientObjectException;
import org.hibernate.bytecode.enhance.spi.LazyPropertyInitializer;
import org.hibernate.engine.spi.EntityEntry;
import org.hibernate.engine.spi.SharedSessionContractImplementor;
import org.hibernate.engine.spi.Status;
import org.hibernate.persister.entity.EntityPersister;
import org.hibernate.proxy.HibernateProxy;
import org.hibernate.proxy.LazyInitializer;
@ -160,9 +159,6 @@ public final class ForeignKeys {
if ( entityEntry == null ) {
return isTransient( entityName, object, null, session );
}
else if ( isDelete && ( entityEntry.getStatus() == Status.DELETED || entityEntry.getStatus() == Status.GONE ) ) {
return false;
}
else {
return entityEntry.isNullifiable( isEarlyInsert, session );
}

View File

@ -101,23 +101,6 @@ public final class Nullability {
if ( checkability[i] && values[i]!= LazyPropertyInitializer.UNFETCHED_PROPERTY ) {
final Object value = values[i];
if ( !nullability[i] && value == null ) {
// generally speaking this is an exception as we will throw below
// but first, we check for a special condition in which:
// 1) we are processing a delete
// 2) the property represents the "other side" of this association
// 3) the other side is currently in the "being deleted" status
// 4) the property is defined to cascade deletes from the other side to
// this association property
//
// in such a case we allow this to continue
if ( checkType == NullabilityCheckType.DELETE ) {
if ( propertyTypes[i].isEntityType() ) {
final EntityType associationType = (EntityType) propertyTypes[i];
}
}
//check basic level one nullablilty
throw new PropertyValueException(
"not-null property references a null or transient value",