remove two unnecessary calls to deprecated getEntityTuplizer()

This commit is contained in:
Gavin King 2021-03-03 08:07:48 +01:00 committed by Christian Beikov
parent bd84bb69bd
commit b6dc77280f
2 changed files with 3 additions and 3 deletions

View File

@ -156,7 +156,7 @@ public class AnyType extends AbstractType implements CompositeType, AssociationT
final EntityPersister concretePersister = guessEntityPersister( entity );
return concretePersister == null
? null
: concretePersister.getEntityTuplizer().getIdentifier( entity, null );
: concretePersister.getIdentifier( entity, null );
}
private EntityPersister guessEntityPersister(Object object) {

View File

@ -219,8 +219,8 @@ public abstract class EntityType extends AbstractType implements AssociationType
return ReflectHelper.classForName( entityName );
}
catch (ClassNotFoundException cnfe) {
return typeConfiguration.getSessionFactory().getMetamodel().entityPersister( entityName ).
getEntityTuplizer().getMappedClass();
return typeConfiguration.getSessionFactory().getMetamodel().entityPersister( entityName )
.getMappedClass();
}
}