Note that part of implementing this required removing the test added for https://hibernate.atlassian.net/browse/HHH-14213 . Because we always (usually) pass along the String representation of the literal, there is never a parse error.