HHH-14464 Make two methods of AbstractEntityPersister protected

for the benefit of Hibernate Reeactive
This commit is contained in:
Gavin King 2021-02-23 00:47:04 +01:00 committed by Sanne Grinovero
parent db54fe44db
commit 578edbfd9f
1 changed files with 2 additions and 2 deletions

View File

@ -3897,7 +3897,7 @@ public abstract class AbstractEntityPersister
|| entityMetamodel.getOptimisticLockStyle() == OptimisticLockStyle.ALL;
}
private String[] generateSQLDeleteStrings(Object[] loadedState) {
protected String[] generateSQLDeleteStrings(Object[] loadedState) {
int span = getTableSpan();
String[] deleteStrings = new String[span];
for ( int j = span - 1; j >= 0; j-- ) {
@ -5598,7 +5598,7 @@ public abstract class AbstractEntityPersister
private Boolean naturalIdIsNonNullable;
private String cachedPkByNonNullableNaturalIdQuery;
private String determinePkByNaturalIdQuery(boolean[] valueNullness) {
protected String determinePkByNaturalIdQuery(boolean[] valueNullness) {
if ( !hasNaturalIdentifier() ) {
throw new HibernateException(
"Attempt to build natural-id -> PK resolution query for entity that does not define natural id"