remove two unnecessary calls to deprecated getEntityTuplizer()
This commit is contained in:
parent
bd84bb69bd
commit
b6dc77280f
|
@ -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) {
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue