From b4929b3946c95773296c41a5056a26dc656f0b10 Mon Sep 17 00:00:00 2001 From: gavinking Date: Wed, 27 May 2020 20:33:00 +0200 Subject: [PATCH] HHH-14049 AbstractEntityPersister make three private methods protected for use in Hibernate Reactive --- .../hibernate/persister/entity/AbstractEntityPersister.java | 6 +++--- 1 file changed, 3 insertions(+), 3 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 fcc62d70eb..9261d29e7d 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 @@ -3606,7 +3606,7 @@ public abstract class AbstractEntityPersister } - private String[] getUpdateStrings(boolean byRowId, boolean lazy) { + protected String[] getUpdateStrings(boolean byRowId, boolean lazy) { if ( byRowId ) { return lazy ? getSQLLazyUpdateByRowIdStrings() : getSQLUpdateByRowIdStrings(); } @@ -3781,7 +3781,7 @@ public abstract class AbstractEntityPersister } } - private void preInsertInMemoryValueGeneration(Object[] fields, Object object, SharedSessionContractImplementor session) { + protected void preInsertInMemoryValueGeneration(Object[] fields, Object object, SharedSessionContractImplementor session) { if ( getEntityMetamodel().hasPreInsertGeneratedValues() ) { final InMemoryValueGenerationStrategy[] strategies = getEntityMetamodel().getInMemoryValueGenerationStrategies(); for ( int i = 0; i < strategies.length; i++ ) { @@ -3831,7 +3831,7 @@ public abstract class AbstractEntityPersister } - private boolean isAllOrDirtyOptLocking() { + protected boolean isAllOrDirtyOptLocking() { return entityMetamodel.getOptimisticLockStyle() == OptimisticLockStyle.DIRTY || entityMetamodel.getOptimisticLockStyle() == OptimisticLockStyle.ALL; }