Hibernate throws EnhancementException for embedded field in MappedSuperclass #24494
Labels
area/hibernate-orm
Hibernate ORM
area/persistence
OBSOLETE, DO NOT USE
kind/bug
Something isn't working
Milestone
Describe the bug
Similar to #5756, possibly a regression?
If you have an embedded field in a @MappedSuperclass that resides in a different package then the concrete entity class, Hibernate (both Reactive and ORM) will throw an error during the application build:
You can only work around the issue by making the embedded field public.
Expected behavior
Hibernate should be able to access the field and build should work.
Actual behavior
Build is broken with exception mentioned above.
How to Reproduce?
Reproducer: https://github.com/markusdlugi/hibernate-enhancement-exception
Steps to reproduce the behavior:
Output of
uname -a
orver
No response
Output of
java -version
OpenJDK 64-Bit Server VM Corretto-11.0.10.9.1 (build 11.0.10+9-LTS, mixed mode)
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.7.5.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.6.3
Additional information
No response
The text was updated successfully, but these errors were encountered: