Branch: refs/heads/7.4
Home:
https://github.com/hibernate/hibernate-orm
Commit: 88ff40a16c16a6423937d4c9cb32fba94e8f2a00
https://github.com/hibernate/hibernate-orm/commit/88ff40a16c16a6423937d4c...
Author: Stéphane Épardaud <stef(a)epardaud.fr>
Date: 2026-08-28 (Fri, 28 Aug 2026)
Changed paths:
M
tooling/metamodel-generator/src/main/java/org/hibernate/processor/annotation/AbstractAnnotatedMethod.java
M
tooling/metamodel-generator/src/main/java/org/hibernate/processor/annotation/AnnotationMetaEntity.java
Log Message:
-----------
HHH-20720 Copy @InterceptorBinding annotations for all repository types, not just
@Repository
Previously, inheritedAnnotations() only copied annotations with
@InterceptorBinding (such as @Transactional) to the generated
implementation class when the interface was annotated with Jakarta
Data's @Repository. Quarkus Data repositories without @Repository
were excluded, so @Transactional on their methods was silently lost.
Widen the check from isJakartaDataRepository()/jakartaDataRepository
to isRepository()/repository so that all processor-generated
repository implementations inherit interceptor binding annotations.
Co-Authored-By: Claude Opus 4.6 <noreply(a)anthropic.com>
(cherry picked from commit ce54b85e3bbe2800ca64ac783e32f6df8365c56f)
Commit: ae2a193c8274274baa0ad7b804022b952d6403bf
https://github.com/hibernate/hibernate-orm/commit/ae2a193c8274274baa0ad7b...
Author: Stéphane Épardaud <stef(a)epardaud.fr>
Date: 2026-08-28 (Fri, 28 Aug 2026)
Changed paths:
M tooling/metamodel-generator/src/main/java/org/hibernate/processor/ClassWriter.java
M tooling/metamodel-generator/src/main/java/org/hibernate/processor/Context.java
M
tooling/metamodel-generator/src/main/java/org/hibernate/processor/HibernateProcessor.java
M
tooling/metamodel-generator/src/main/java/org/hibernate/processor/annotation/AbstractAnnotatedMethod.java
M
tooling/metamodel-generator/src/main/java/org/hibernate/processor/annotation/AnnotationMetaEntity.java
M
tooling/metamodel-generator/src/main/java/org/hibernate/processor/annotation/LifecycleMethod.java
M
tooling/metamodel-generator/src/main/java/org/hibernate/processor/util/TypeUtils.java
Log Message:
-----------
HHH-20720 Guard inheritedAnnotations() on CDI availability and rename
addDependentAnnotation to isCdiAvailable
The inheritedAnnotations() methods that copy @InterceptorBinding
annotations (such as @Transactional) to generated repository
implementations now also check that CDI is on the build path
(jakarta.enterprise.context is present). Without this guard, the
annotation processor would attempt to copy interceptor bindings even
when CDI is unavailable, which is pointless.
Rename Context.addDependentAnnotation()/setAddDependentAnnotation() to
isCdiAvailable()/setCdiAvailable() to better express the intent of the
flag across all its call sites.
Co-Authored-By: Claude Opus 4.6 <noreply(a)anthropic.com>
(cherry picked from commit 0b5fc4b43445e6ea365001359801470355032fe9)
Compare:
https://github.com/hibernate/hibernate-orm/compare/e68da2dd2e2b...ae2a193...
To unsubscribe from these emails, change your notification settings at
https://github.com/hibernate/hibernate-orm/settings/notifications