playframework / playframework/play1
JPAQuery.bind .when the params is Integer , it get a long value.
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.6k
- Forks
- 671
- Avg merge
- 12d 15h
- Merged PRs (30d)
- 1
Description
JPAQuery.bind .when the params is Integer , it get a long value.

while, in hibernate5 。QueryParameterBindingValidator throw an exception.

and now i can use setParameter instead。
Am I using it the wrong way?

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the JPAQuery.bind call with an Integer parameter under Hibernate 5, then compare its binding behavior with setParameter. Done means the Integer parameter is bound with the expected type without triggering QueryParameterBindingValidator, with a regression test covering the case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100