diff --git a/hibernate-core/src/main/java/org/hibernate/internal/SessionImpl.java b/hibernate-core/src/main/java/org/hibernate/internal/SessionImpl.java index ecdd0aff04..423cba01e8 100644 --- a/hibernate-core/src/main/java/org/hibernate/internal/SessionImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/internal/SessionImpl.java @@ -1435,7 +1435,7 @@ public class SessionImpl return result; } - private void verifyImmutableEntityUpdate(HQLQueryPlan plan) { + protected void verifyImmutableEntityUpdate(HQLQueryPlan plan) { if ( plan.isUpdate() ) { List primaryFromClauseTables = new ArrayList<>(); for ( QueryTranslator queryTranslator : plan.getTranslators() ) {