diff --git a/hibernate-core/src/main/java/org/hibernate/query/sqm/internal/QuerySqmImpl.java b/hibernate-core/src/main/java/org/hibernate/query/sqm/internal/QuerySqmImpl.java index 56776a7f39..b919b4fb41 100644 --- a/hibernate-core/src/main/java/org/hibernate/query/sqm/internal/QuerySqmImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/query/sqm/internal/QuerySqmImpl.java @@ -720,7 +720,7 @@ public class QuerySqmImpl } } - private void verifyUpdate() { + protected void verifyUpdate() { try { SqmUtil.verifyIsNonSelectStatement( getSqmStatement(), hql ); } @@ -863,7 +863,7 @@ public class QuerySqmImpl } } - private boolean hasIdentifierAssigned(SqmInsertStatement sqmInsert, EntityPersister entityDescriptor) { + protected boolean hasIdentifierAssigned(SqmInsertStatement sqmInsert, EntityPersister entityDescriptor) { final EntityIdentifierMapping identifierMapping = entityDescriptor.getIdentifierMapping(); final String partName; if ( identifierMapping instanceof SingleAttributeIdentifierMapping ) { @@ -886,7 +886,7 @@ public class QuerySqmImpl return false; } - private boolean isSimpleValuesInsert(SqmInsertStatement sqmInsert, EntityPersister entityDescriptor) { + protected boolean isSimpleValuesInsert(SqmInsertStatement sqmInsert, EntityPersister entityDescriptor) { // Simple means that we can translate the statement to a single plain insert return sqmInsert instanceof SqmInsertValuesStatement // An insert is only simple if no SqmMultiTableMutation strategy is available,