Skip to content

Commit 3cfb552

Browse files
committed
HHH-19301 Importing element FQCN in org.hibernate.processor.annotation.AnnotationMetaEntity constructor
Not importing if FQCN ends with dollar sign
1 parent eb63da9 commit 3cfb552

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tooling/metamodel-generator/src/main/java/org/hibernate/processor/annotation/AnnotationMetaEntity.java

+3
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,9 @@ public AnnotationMetaEntity(
183183
importContext.importType(
184184
getGeneratedClassFullyQualifiedName( element, getPackageName( context, element ),
185185
jakartaDataStaticModel ) );
186+
if ( !element.getQualifiedName().toString().endsWith( "$" ) ) {
187+
importContext.importType( element.getQualifiedName().toString() );
188+
}
186189
}
187190

188191
public static AnnotationMetaEntity create(TypeElement element, Context context, @Nullable AnnotationMetaEntity parent) {

0 commit comments

Comments
 (0)