From 3edb588ca22959db38424bbe76b7dd075130df5e Mon Sep 17 00:00:00 2001 From: shin-mallang Date: Mon, 27 Feb 2023 12:07:47 +0900 Subject: [PATCH] HHH-16233 Fix logs for mutable non-root entity --- .../java/org/hibernate/boot/model/internal/EntityBinder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hibernate-core/src/main/java/org/hibernate/boot/model/internal/EntityBinder.java b/hibernate-core/src/main/java/org/hibernate/boot/model/internal/EntityBinder.java index 486dcfed22..39836cc3de 100644 --- a/hibernate-core/src/main/java/org/hibernate/boot/model/internal/EntityBinder.java +++ b/hibernate-core/src/main/java/org/hibernate/boot/model/internal/EntityBinder.java @@ -1188,7 +1188,7 @@ public class EntityBinder { if ( persistentClass instanceof RootClass ) { bindRootEntity(); } - else if ( isMutable() ) { + else if ( !isMutable() ) { LOG.immutableAnnotationOnNonRoot( annotatedClass.getName() ); }