-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Unable to use CriteriaQuery to query integer field which parsed to String using LIKE condition #30734
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
Comments
Thanks for getting in touch. As mentioned in the guidelines for contributing, we prefer to use GitHub issues only for bugs and enhancements. This feels like a question that would be better suited to Stack Overflow. There's also no indication that Spring Boot is involved in this issue, as the |
This could be a duplicate of #30421. Could you confirm by downgrading the hibernate version and check if it works? Also, providing full stacktraces is often preferred. Thanks |
Hi, I adjusted versions in pom.xml
The issue is still present. and here is the full stack trace
By the way, I found a workaround by implementing it as below. ✅ Working Code
❌ Instead of (Not Working Code)
|
@babebbu All the clues point to an issue with type conversion between |
The code below is expected to be able to search
id
field by usingLIKE
condition.Input: 1
Output: 1, 10, anything which
id
field includes1
Versions
Code
Error
Demo Data
The text was updated successfully, but these errors were encountered: