[hibernate/hibernate-orm] 74d911: HHH-20707 Fix missing import for inner interface C...
by Eduardo Ramirez
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
1 month, 1 week
[hibernate/hibernate-orm] 8fd9b2: HHH-20707 Fix missing import for inner interface C...
by Eduardo Ramirez
Branch: refs/heads/8.0
Home: https://github.com/hibernate/hibernate-orm
Commit: 8fd9b230fc64a0eddddbe7510e021c4555795cef
https://github.com/hibernate/hibernate-orm/commit/8fd9b230fc64a0eddddbe75...
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 8.0.
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
1 month, 1 week
[hibernate/hibernate-orm] 9302da: HHH-20707 Fix missing import for inner interface C...
by Eduardo Ramirez
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
1 month, 1 week