HHH-8276 - Integrate LoadPlans into UniqueEntityLoader (PoC)
This commit is contained in:
parent
ba0d14546c
commit
0481eb856b
|
@ -283,16 +283,14 @@ 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()
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void loadFromResultSet(
|
||||
ResultSet resultSet,
|
||||
|
|
|
@ -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