diff --git a/hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/annotations/entity/EntityClass.java b/hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/annotations/entity/EntityClass.java index 18f8c36d2f..e20e184af7 100644 --- a/hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/annotations/entity/EntityClass.java +++ b/hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/annotations/entity/EntityClass.java @@ -342,15 +342,20 @@ else if ( hibernateEntityAnnotation != null && hibernateEntityAnnotation.value( } optimisticLockStyle = OptimisticLockStyle.valueOf( optimisticLockType.name() ); - final AnnotationInstance hibernateImmutableAnnotation = JandexHelper.getSingleAnnotation( getClassInfo(), HibernateDotNames.IMMUTABLE, ClassInfo.class ); + final AnnotationInstance hibernateImmutableAnnotation = JandexHelper.getSingleAnnotation( + getClassInfo(), + HibernateDotNames.IMMUTABLE, + ClassInfo.class + ); if ( hibernateImmutableAnnotation != null ) { isImmutable = true; } - else if (hibernateEntityAnnotation != null - && hibernateEntityAnnotation.value( "mutable" ) != null){ + else if ( hibernateEntityAnnotation != null + && hibernateEntityAnnotation.value( "mutable" ) != null ) { isImmutable = !hibernateEntityAnnotation.value( "mutable" ).asBoolean(); - } else { + } + else { isImmutable = false; }