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 18
18
import java .util .ArrayList ;
19
19
import java .util .List ;
20
20
21
- import javax .persistence .Embedded ;
22
- import javax .persistence .Entity ;
23
-
24
21
import javassist .ClassPool ;
25
22
import javassist .CtClass ;
26
23
import javassist .CtField ;
@@ -127,14 +124,16 @@ public boolean isLazyLoadable(CtField field) {
127
124
128
125
final CtClass ctClass = toCtClass ( file , classPool );
129
126
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 " );
133
130
continue ;
134
131
}
135
132
136
133
final byte [] enhancedBytecode = doEnhancement ( ctClass , enhancer );
137
134
writeOutEnhancedClass ( enhancedBytecode , ctClass , file );
135
+
136
+ logger .info ( "Successfully enhanced class [" + ctClass .getName () + "]" );
138
137
}
139
138
}
140
139
}
You can’t perform that action at this time.
0 commit comments