I recently updated from 3.0.5 to 3.1
3.0.5
Code:
query.setParameter("countryId", "1");
Correctly casts and sets the value in the PreparedStatement as an integer.
3.1
Code:
query.setParameter("countryId", "1");
Throws a ClassCastException in the set method of the IntegerType when attempting to set the value on the PreparedStatement.
If something has changed between the versions and this is not a bug, how do I achieve this functionality? I completely understand if this functionality has been removed and is no longer supported (e.g. not a best practice).
Thanks
Tim