File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
tooling/hibernate-gradle-plugin/src/main/groovy/org/hibernate/orm/tooling/gradle Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 1818import java .util .ArrayList ;
1919import java .util .List ;
2020
21- import javax .persistence .Embedded ;
22- import javax .persistence .Entity ;
23-
2421import javassist .ClassPool ;
2522import javassist .CtClass ;
2623import javassist .CtField ;
@@ -127,14 +124,16 @@ public boolean isLazyLoadable(CtField field) {
127124
128125 final CtClass ctClass = toCtClass ( file , classPool );
129126
130- if ( !ctClass . hasAnnotation ( Entity . class )
131- && !ctClass . hasAnnotation ( Embedded . class ) ) {
132- logger .debug ( "Skipping class file [" + file .getAbsolutePath () + "], not an entity nor embedded " );
127+ if ( !enhancementContext . isEntityClass ( ctClass )
128+ && !enhancementContext . isCompositeClass ( ctClass ) ) {
129+ logger .info ( "Skipping class [" + file .getAbsolutePath () + "], not an entity nor embeddable " );
133130 continue ;
134131 }
135132
136133 final byte [] enhancedBytecode = doEnhancement ( ctClass , enhancer );
137134 writeOutEnhancedClass ( enhancedBytecode , ctClass , file );
135+
136+ logger .info ( "Successfully enhanced class [" + ctClass .getName () + "]" );
138137 }
139138 }
140139 }
You can’t perform that action at this time.
0 commit comments