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 );
|
final EntityPersister concretePersister = guessEntityPersister( entity );
|
||||||
return concretePersister == null
|
return concretePersister == null
|
||||||
? null
|
? null
|
||||||
: concretePersister.getEntityTuplizer().getIdentifier( entity, null );
|
: concretePersister.getIdentifier( entity, null );
|
||||||
}
|
}
|
||||||
|
|
||||||
private EntityPersister guessEntityPersister(Object object) {
|
private EntityPersister guessEntityPersister(Object object) {
|
||||||
|
|
|
@ -219,8 +219,8 @@ public abstract class EntityType extends AbstractType implements AssociationType
|
||||||
return ReflectHelper.classForName( entityName );
|
return ReflectHelper.classForName( entityName );
|
||||||
}
|
}
|
||||||
catch (ClassNotFoundException cnfe) {
|
catch (ClassNotFoundException cnfe) {
|
||||||
return typeConfiguration.getSessionFactory().getMetamodel().entityPersister( entityName ).
|
return typeConfiguration.getSessionFactory().getMetamodel().entityPersister( entityName )
|
||||||
getEntityTuplizer().getMappedClass();
|
.getMappedClass();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue