HHH-7459 correct code format

This commit is contained in:
Strong Liu 2012-11-13 11:23:11 +08:00
parent 3353926fa4
commit af5208c1cf

View File

@ -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;
}