| The PR works as a fallback and don't break specification If the literal can be converted it will be and then the converted literal will be applied as expected by JPA 2.1 3.8 > getDataType().getReturnedClass().equals( converterTypeAdapter.getModelType() ) https://github.com/hibernate/hibernate-orm/pull/1284/files#diff-1638f423d5e9f6e695b0fb8ceb59a12eR93 The PR: If the literal can not be converted by AttributeConverter and it is already a valid converted value of the same type it can be used > getDataType().getReturnedClass().equals( converterTypeAdapter.getJdbcType() ) https://github.com/hibernate/hibernate-orm/pull/1284/files#diff-1638f423d5e9f6e695b0fb8ceb59a12eR104 |