From d5145e1f5a4eed8045e73db99ade2315c3a15844 Mon Sep 17 00:00:00 2001 From: Barry LaFond Date: Mon, 27 Feb 2023 12:02:08 -0600 Subject: [PATCH] method access changes for reactive overrides in AbstractEntityPersister --- .../hibernate/persister/entity/AbstractEntityPersister.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java b/hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java index 3079d05944..68676b152c 100644 --- a/hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java +++ b/hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java @@ -4469,7 +4469,7 @@ public abstract class AbstractEntityPersister return entityMetamodel.getNaturalIdentifierProperties(); } - private void verifyHasNaturalId() { + protected void verifyHasNaturalId() { if ( ! hasNaturalIdentifier() ) { throw new HibernateException( "Entity does not define a natural id : " + getEntityName() ); } @@ -4890,7 +4890,7 @@ public abstract class AbstractEntityPersister } } - private NaturalIdMapping generateNaturalIdMapping(MappingModelCreationProcess creationProcess, PersistentClass bootEntityDescriptor) { + protected NaturalIdMapping generateNaturalIdMapping(MappingModelCreationProcess creationProcess, PersistentClass bootEntityDescriptor) { //noinspection AssertWithSideEffects assert bootEntityDescriptor.hasNaturalId();