not all of them were intended to be pushed
This commit is contained in:
parent
58781056a9
commit
2dd23e143e
|
@ -142,10 +142,6 @@ public final class Cascade {
|
|||
);
|
||||
}
|
||||
else {
|
||||
if ( action == CascadingActions.DELETE ) {
|
||||
|
||||
}
|
||||
|
||||
if ( action.requiresNoCascadeChecking() ) {
|
||||
action.noCascade(
|
||||
eventSource,
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue