From b6dc77280f478ff54a29315a342fc5d147cb6311 Mon Sep 17 00:00:00 2001 From: Gavin King Date: Wed, 3 Mar 2021 08:07:48 +0100 Subject: [PATCH] remove two unnecessary calls to deprecated getEntityTuplizer() --- hibernate-core/src/main/java/org/hibernate/type/AnyType.java | 2 +- .../src/main/java/org/hibernate/type/EntityType.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/type/AnyType.java b/hibernate-core/src/main/java/org/hibernate/type/AnyType.java index 207774d05e..9883f72156 100644 --- a/hibernate-core/src/main/java/org/hibernate/type/AnyType.java +++ b/hibernate-core/src/main/java/org/hibernate/type/AnyType.java @@ -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) { diff --git a/hibernate-core/src/main/java/org/hibernate/type/EntityType.java b/hibernate-core/src/main/java/org/hibernate/type/EntityType.java index 7bcabadca3..b0bacc7a0a 100644 --- a/hibernate-core/src/main/java/org/hibernate/type/EntityType.java +++ b/hibernate-core/src/main/java/org/hibernate/type/EntityType.java @@ -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(); } }