mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 08:35:13 +00:00
HHH-7459 correct code format
This commit is contained in:
parent
3353926fa4
commit
af5208c1cf
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user