The Hibernate implementation for the Converter does not work according to the specification:
From the @Converter annotation javadoc (as of javax.persistence-api 2.2):
From the implementation of AutoApplicableConverterDescriptorStandardImpl.typesMatch(...):
The condition will be true in case e.g. converterDefinedType.getErasedType() is Boolean and checkType.getErasedType() is boolean.
PR created at:
IMHO this should be backported to the next version in 5.4 as well.
Seems we won’t have new 5.4 release plan and will switch to 5.5 instead.