Query parameter binding validation issue

Description

Hibernate 5.x is not validating query parameters in advance butg only when query is executed. According to JPA spec, Query#setParameter should throw IllegalArgumentException if parameter type mismatch.

It's working fine in hibernate 4.x.

Environment

Hibernate 5.x, PostgreSQL 9.6

Status

Assignee

Andrea Boriero

Reporter

Amit Mendapara

Fix versions

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

backportDecision

None

Components

Affects versions

5.2.6

Priority

Major