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

Casting to String no longer works in JPA criteria query since 6.6. Global search not working with non-string column. #166

Open
azhao-mv opened this issue Dec 17, 2024 · 1 comment
Labels

Comments

@azhao-mv
Copy link

Hey Damien,

Thanks for your great work.

Run into an issue with latest hibernate. And I found this: Casting to String no longer works in JPA criteria query since hibernate 6.6

See also:
https://hibernate.atlassian.net/browse/HHH-18710
https://docs.jboss.org/hibernate/orm/6.6/migration-guide/migration-guide.html#criteria-query

Thanks,

Allen

@darrachequesne
Copy link
Owner

Hi! Thanks for the heads-up, I could indeed reproduce the issue: https://github.com/darrachequesne/spring-data-jpa-datatables/actions/runs/12390393198/job/34585315142

According to the ticket, we will be able to call express.cast() in JPA 3.2/Hibernate 7 (currently in beta: https://github.com/hibernate/hibernate-orm/releases/tag/7.0.0.Beta3).

Not sure how we could work around this with Hibernate 6.6.x though. Any ideas?

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

No branches or pull requests

2 participants