JPA criteria API don't bind numeric field

Description

When you use JPA criteria API, the numeric value are not binded but are directly set in the SQL instead.

eq: you have a generated SQL like:
select ... from ... where age=12;
instead of
select ... from ... where age=?;
With '12' as parameter.

when you test the following code:

Environment

None

Assignee

Steve Ebersole

Reporter

gwa

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

Yes, likely

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure