Skip to content

ClassCastException when with @EmebedddedId and @OneToOne relationship #2230

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
DavideD opened this issue Apr 29, 2025 · 1 comment
Open
Labels
quarkus The issue links an issue in Quarkus

Comments

@DavideD
Copy link
Member

DavideD commented Apr 29, 2025

See quarkusio/quarkus#47536 (comment)

[ERROR] org.acme.hibernate.orm.panache.ReproTest.test(TransactionalUniAsserter) -- Time elapsed: 0.124 s <<< ERROR!
java.lang.ClassCastException: class org.hibernate.sql.results.graph.entity.internal.EntitySelectFetchInitializer cannot be cast to class org.hibernate.reactive.sql.results.graph.ReactiveInitializer (org.hibernate.sql.results.graph.entity.internal.EntitySelectFetchInitializer and org.hibernate.reactive.sql.results.graph.ReactiveInitializer are in unnamed module of loader io.quarkus.bootstrap.classloading.QuarkusClassLoader @4cc7d00d)
	at org.hibernate.reactive.sql.results.graph.embeddable.internal.ReactiveEmbeddableInitializerImpl.lambda$forEachReactiveSubInitializer$0(ReactiveEmbeddableInitializerImpl.java:75)
	at org.hibernate.reactive.util.impl.CompletionStages.lambda$loop$2(CompletionStages.java:175)
	at org.hibernate.reactive.util.impl.CompletionStages.lambda$loop$7(CompletionStages.java:410)
	at org.hibernate.reactive.util.impl.CompletionStages$ArrayLoop.next(CompletionStages.java:484)
@DavideD DavideD added the quarkus The issue links an issue in Quarkus label Apr 29, 2025
@DavideD DavideD self-assigned this Apr 29, 2025
DavideD added a commit to DavideD/hibernate-reactive that referenced this issue Apr 29, 2025
@DavideD
Copy link
Member Author

DavideD commented Apr 29, 2025

I've added a test case here: DavideD@0154c69

The other commit in the same branch contains some initial changes attempting to solve the issues but they can be ignored

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
quarkus The issue links an issue in Quarkus
Projects
None yet
Development

No branches or pull requests

1 participant