The "Query parameter binding validation" introduced in [HHH-11397|https://hibernate.atlassian.net/browse/HHH-11397] (commit [55af30e|https://github.com/hibernate/hibernate-orm/commit/55af30eb1381deed79ee7479099c19531fdeedb2]) is too strinct strict when using a _org.hibernate.usertype.UserType_.
The query parameter value is always compared with the return value of the _UserType_'s _returnedClass()_ method.
In our _UserType_'s _nullSafeSet_ method, we accept instances of the _UserType_'s _returnedClass()_ method as _value_, as well as other values (which worked in Hibernate 5.2.8 and leads to an IllegalArgumentException in Hibernate 5.2.9).
Test case: see [^qpvalidation.zip]. |
|