You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When specifying scan packages via application property quarkus.hibernate-orm.packages package-info-Files within these scan-packages are not taken into account.
Expected behavior
package-info-Files within quarkus.hibernate-orm.packages can be interpreted by hibernate.
Actual behavior
Having for example a hibernate @FilterDef within a package-info.java, startup of Quarkus will stop with an exception:
org.hibernate.AnnotationException: Entity 'MyEntity' has a '@Filter' for an undefined filter named 'filterDeleted'
Removing the property quarkus.hibernate-orm.packages fixes the problem.
Starting this project with goal compile quarkus:dev will lead to a failed startup. Removing the quarkus.hibernate-orm.packages property from /src/main/resources/application.properties and running again leads to a successfull start.
Output of uname -a or ver
Darwin Florians-MBP 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:31:00 PST 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6020 arm64
Output of java -version
openjdk version "17.0.5" 2022-10-18 OpenJDK Runtime Environment GraalVM CE 22.3.0 (build 17.0.5+8-jvmci-22.3-b08) OpenJDK 64-Bit Server VM GraalVM CE 22.3.0 (build 17.0.5+8-jvmci-22.3-b08, mixed mode, sharing)
Quarkus version or git rev
3.8.2
Build tool (ie. output of mvnw --version or gradlew --version)
No response
Additional information
io.quarkus.hibernate.orm.runtime.boot.scan.QuarkusScanner.Result removes the package-info-candidate in line 61/62
The text was updated successfully, but these errors were encountered:
gsmet
changed the title
Quarkus ORM: package-info is ignored when specifying scan packages
Hibernate ORM: package-info is ignored when specifying scan packages
Mar 9, 2024
Describe the bug
When specifying scan packages via application property
quarkus.hibernate-orm.packages
package-info-Files within these scan-packages are not taken into account.Expected behavior
package-info-Files within
quarkus.hibernate-orm.packages
can be interpreted by hibernate.Actual behavior
Having for example a hibernate @FilterDef within a package-info.java, startup of Quarkus will stop with an exception:
Removing the property
quarkus.hibernate-orm.packages
fixes the problem.How to Reproduce?
I have created a simple reproducible:
https://github.com/flokle/bug-reproducibles/tree/main/java/quarkus-orm-package-info-ignored-bug
Starting this project with goal
compile quarkus:dev
will lead to a failed startup. Removing thequarkus.hibernate-orm.packages
property from /src/main/resources/application.properties and running again leads to a successfull start.Output of
uname -a
orver
Darwin Florians-MBP 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:31:00 PST 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6020 arm64
Output of
java -version
openjdk version "17.0.5" 2022-10-18 OpenJDK Runtime Environment GraalVM CE 22.3.0 (build 17.0.5+8-jvmci-22.3-b08) OpenJDK 64-Bit Server VM GraalVM CE 22.3.0 (build 17.0.5+8-jvmci-22.3-b08, mixed mode, sharing)
Quarkus version or git rev
3.8.2
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
io.quarkus.hibernate.orm.runtime.boot.scan.QuarkusScanner.Result removes the package-info-candidate in line 61/62
The text was updated successfully, but these errors were encountered: