ORM Filter are searched in the wrong order #45479
Labels
area/hibernate-orm
Hibernate ORM
kind/bug-thirdparty
Bugs that are caused by third-party components and not causing a major dysfunction of core Quarkus.
Describe the bug
I recently started using Hibernate
FilterDef
andFilter
in my application, and noticed that the filters are resolved in alphanumerical order.For Example this crashes on startup (see exception below):
But this works just fine, at startup and in runtime:
Expected behavior
FilterDef can be defined on any entity, and can be used by any Filter. No matter the order of entity classes
Actual behavior
This exception happens on startup:
How to Reproduce?
Reproducer: q-orm-f-def-order.zip
Output of
uname -a
orver
MINGW64_NT-10.0-19045 NANBCHL9NG3 3.3.6-341.x86_64 2022-09-05 20:28 UTC x86_64 Msys
Output of
java -version
openjdk 21.0.5 2024-10-15 LTS OpenJDK Runtime Environment Temurin-21.0.5+11 (build 21.0.5+11-LTS) OpenJDK 64-Bit Server VM Temurin-21.0.5+11 (build 21.0.5+11-LTS, mixed mode, sharing)
Quarkus version or git rev
3.17.6
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.8.8 (4c87b05d9aedce574290d1acc98575ed5eb6cd39) Maven home: C:\eclipse\tools\java\maven Java version: 21.0.5, vendor: Eclipse Adoptium, runtime: C:\eclipse\tools\java\21 Default locale: de_DE, platform encoding: UTF-8 OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
Additional information
No response
The text was updated successfully, but these errors were encountered: