QueryParameterBindingValidator does not handle primitive types

Description

We are using the Hibernate Generator to generate our entity classes based on existing data structures. To map the types we rely on UserType (they are supported by the generator and JPA AttributeConverter were not yet available when we started the project years ago).

To let the generator create a primitive boolean property (e. g. for a not-null column) in the entity, the returnedClass of the UserType has to be boolean.class. This however seems to confuse the QueryParameterBindingValidator introduced for in 5.2.9 - it worked like a charm until 5.2.8.

Note: The same applies to other primitive types as well!

Please find a stripped down test case here:
https://github.com/abenneke/sandbox/tree/master/hibernate-primitive-parameter

Environment

None

Status

Assignee

Andrea Boriero

Reporter

Andreas Benneke

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Worked in

5.2.8

Components

Affects versions

Priority

Major
Configure