HHH-8276 - Integrate LoadPlans into UniqueEntityLoader (PoC)
This commit is contained in:
parent
ba0d14546c
commit
0481eb856b
|
@ -283,14 +283,12 @@ public class EntityReferenceInitializerImpl implements EntityReferenceInitialize
|
|||
}
|
||||
|
||||
final EntityKey ownerEntityKey = fetchOwnerState.getEntityKey();
|
||||
if ( ownerEntityKey == null ) {
|
||||
throw new IllegalStateException( "Could not locate fetch owner EntityKey" );
|
||||
if ( ownerEntityKey != null ) {
|
||||
context.getSession().getPersistenceContext().addNullProperty(
|
||||
ownerEntityKey,
|
||||
fetchedType.getPropertyName()
|
||||
);
|
||||
}
|
||||
|
||||
context.getSession().getPersistenceContext().addNullProperty(
|
||||
ownerEntityKey,
|
||||
fetchedType.getPropertyName()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -131,7 +131,9 @@ public class CompositionSingularSubAttributesHelper {
|
|||
final int columnSpan = type.getColumnSpan( ownerEntityPersister.getFactory() );
|
||||
final String[] subAttributeLhsColumns = ArrayHelper.slice( lhsColumns, columnPosition, columnSpan );
|
||||
|
||||
final boolean nullable = compositeType.getPropertyNullability()[subAttributeNumber];
|
||||
|
||||
final boolean[] propertyNullability = compositeType.getPropertyNullability();
|
||||
final boolean nullable = propertyNullability == null || propertyNullability[subAttributeNumber];
|
||||
|
||||
currentColumnPosition += columnSpan;
|
||||
|
||||
|
|
Loading…
Reference in New Issue