Branch: refs/heads/7.4
Home:
https://github.com/hibernate/hibernate-orm
Commit: 74d9112f6c8faf0102e162b1ffcdc0334cc4a184
https://github.com/hibernate/hibernate-orm/commit/74d9112f6c8faf0102e162b...
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() (both overloads) and
addAccessors() now pass the qualified name instead of the simple name.
This gives importType() the information it needs to generate the
correct import statement.
Backport of the main branch fix to 7.4.
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