HHH-8276 - Integrate LoadPlans into UniqueEntityLoader (PoC)

This commit is contained in:
Gail Badner 2013-07-29 23:39:04 -07:00 committed by Steve Ebersole
parent ba0d14546c
commit 0481eb856b
2 changed files with 8 additions and 8 deletions

View File

@ -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,

View File

@ -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;