Branch: refs/heads/main
Home:
https://github.com/hibernate/hibernate-orm
Commit: 9302dae6cd660879d0a4a4c5efca639c4560f4b1
https://github.com/hibernate/hibernate-orm/commit/9302dae6cd660879d0a4a4c...
Author: Eduardo Ramirez <eramirez(a)redhat.com>
Date: 2026-07-21 (Tue, 21 Jul 2026)
Changed paths:
M
tooling/metamodel-generator/src/main/java/org/hibernate/processor/annotation/AnnotationMetaEntity.java
M
tooling/metamodel-generator/src/main/java/org/hibernate/processor/annotation/CDIAccessorMetaAttribute.java
Log Message:
-----------
HHH-20707 Fix missing import for inner interface CDI accessors in metamodel
CDIAccessorMetaAttribute emits unqualified type names for inner interface
accessors without registering imports via importType(). This causes
compilation failures when the metamodel class (e.g., Bird_) references
an inner interface (e.g., Bird.Qubit) that is not in scope.
The fix has two parts:
1. CDIAccessorMetaAttribute.preamble() and returnCDI() now call
annotationMetaEntity.importType(typeName) instead of using the raw
typeName. This ensures the type is registered in the import context.
2. AnnotationMetaEntity.addRepositoryAccessor() and addAccessors() now
pass the qualified name (via TypeElement.getQualifiedName()) instead
of the simple name. This gives importType() the information it needs
to generate the correct import statement.
For generated inner types (e.g., PanacheManagedBlockingRepository_) that
have no package qualifier, importType() returns them unchanged — no
behavioral change for existing code paths.
To unsubscribe from these emails, change your notification settings at
https://github.com/hibernate/hibernate-orm/settings/notifications