HHH-11241 : Fix issue due to backporting

This commit is contained in:
Gail Badner 2016-12-08 12:53:16 -08:00
parent f490451b6d
commit 7dc1729483
1 changed files with 1 additions and 1 deletions

View File

@ -707,7 +707,7 @@ public class SingleTableEntityPersister extends AbstractEntityPersister {
concreteEntityPersister = this; concreteEntityPersister = this;
} }
else { else {
concreteEntityPersister = getFactory().getMetamodel().entityPersister( entityName ); concreteEntityPersister = getFactory().getEntityPersister( entityName );
} }
Type type = concreteEntityPersister.getPropertyType( propertyName ); Type type = concreteEntityPersister.getPropertyType( propertyName );
if ( type.isAssociationType() && ( (AssociationType) type ).useLHSPrimaryKey() ) { if ( type.isAssociationType() && ( (AssociationType) type ).useLHSPrimaryKey() ) {