HibernateOrmProcessor complains about abstract model classes not mapped to a PersistenceUnit #22183
Labels
area/hibernate-orm
Hibernate ORM
area/kotlin
area/persistence
OBSOLETE, DO NOT USE
kind/bug
Something isn't working
Describe the bug
If hibernate entity packages are explicitly listed (e.g. to map them to a specific
PersistenceUnit
), theHibernateOrmProcessor
complains that their abstract super classes and interfaces are not mapped to a PersistenceUnit:application.yaml
Build output:
The log message seems to be produced in io.quarkus.hibernate.orm.deployment.HibernateOrmProcessor line 1054.
In my opinion abstract classes (and those annoted with @MappedSuperclass) and interfaces should not be listed - but maybe I'm mistaken.
I would expect that abstract super classes and interfaces can be shared among different PersistentUnits.
Expected behavior
In the describe scenario no such log message is produced.
Actual behavior
See bug description
How to Reproduce?
./gradlew clean build
Output of
uname -a
orver
Linux automatix 5.11.0-41-generic #45~20.04.1-Ubuntu SMP Wed Nov 10 10:20:10 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Output of
java -version
openjdk version "11.0.13" 2021-10-19 LTS OpenJDK Runtime Environment Zulu11.52+13-CA (build 11.0.13+8-LTS) OpenJDK 64-Bit Server VM Zulu11.52+13-CA (build 11.0.13+8-LTS, mixed mode)
GraalVM version (if different from Java)
n/a
Quarkus version or git rev
2.5.2.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Additional information
No response
The text was updated successfully, but these errors were encountered: