JPA / Hibernate startup error with specific @IdClass
setup since 3.15.2
#45879
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
Given the following setup:
Starting quarkus fails with this setup with a
java.lang.IllegalArgumentException: expecting IdClass mapping
exception. Removing theDummyEntity
or making it not extendTupAbstractEntity
will get rid of the error, so the problem is not with the composite key definition in theTestEntity
.Additionally, renaming
TestEntity
toFooEntity
also causes the error to disappear. However, renaming entities is not a viable workaround for our use-case.This bug first occurred in Quarkus 3.15.2 and is still present in 3.17.8. The same test succeeds with Quarkus 3.15.1.
Expected behavior
No error
Actual behavior
The following exception:
How to Reproduce?
I have created a minimal test case for this issue: https://github.com/mensinda/quarkus-stuff/tree/compositeFail
Steps to reproduce:
compositeFail
branch of https://github.com/mensinda/quarkus-stuff/tree/compositeFailmvn clean verify
Change the
quarkus.platform.version
in thepom.xml
to3.15.1
and the test passes without error.Output of
uname -a
orver
Linux XXXXXXXXX 6.8.0-51-generic #52-Ubuntu SMP PREEMPT_DYNAMIC Thu Dec 5 13:09:44 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Output of
java -version
openjdk version "21.0.5" 2024-10-15
Quarkus version or git rev
3.15.2 - 3.17.8
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937)
Additional information
No response
The text was updated successfully, but these errors were encountered: