Skip to content
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

Error when running HQL queries spanning multiple tables in Hibernate Reactive #15834

Closed
DavideD opened this issue Mar 18, 2021 · 3 comments · Fixed by #15835
Closed

Error when running HQL queries spanning multiple tables in Hibernate Reactive #15834

DavideD opened this issue Mar 18, 2021 · 3 comments · Fixed by #15835

Comments

@DavideD
Copy link
Contributor

DavideD commented Mar 18, 2021

Describe the bug

It happens, for example, when using IngheritanceType.JOINED and an update/delete HQL query is executed on the parent entity.

At the moment, this exceptions is thrown:

java.lang.ClassCastException: class org.hibernate.hql.spi.id.local.LocalTemporaryTableBulkIdStrategy$3 cannot be cast to class org.hibernate.reactive.bulk.StatementsWithParameters

It happens because we don't set optionsBuilder.applyMultiTableBulkIdStrategy( new ReactiveBulkIdStrategy( metadata ) )
when we create the session factory.

@quarkus-bot
Copy link

quarkus-bot bot commented Mar 18, 2021

/cc @Sanne, @gavinking

@DavideD
Copy link
Contributor Author

DavideD commented Mar 18, 2021

I'm already preparing a fix

DavideD added a commit to DavideD/quarkus that referenced this issue Mar 18, 2021
DavideD added a commit to DavideD/quarkus that referenced this issue Mar 18, 2021
DavideD added a commit to DavideD/quarkus that referenced this issue Mar 18, 2021
@DavideD
Copy link
Contributor Author

DavideD commented Mar 18, 2021

PR is ready: #15835

@quarkus-bot quarkus-bot bot added this to the 1.14 - main milestone Mar 18, 2021
@gsmet gsmet modified the milestones: 1.14 - main, 1.13.0.Final Mar 23, 2021
gsmet pushed a commit to gsmet/quarkus that referenced this issue Mar 23, 2021
gsmet pushed a commit to gsmet/quarkus that referenced this issue Mar 23, 2021
with Hibernate Reactive

(cherry picked from commit f7c9452)
gsmet pushed a commit to gsmet/quarkus that referenced this issue Mar 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants