Auto-apply converter not applied to primitives

Description

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.

Activity

Show:

Nathan XuSeptember 9, 2020 at 5:05 PM

Seems we won’t have new 5.4 release plan and will switch to 5.5 instead.

Tassilo KargeSeptember 9, 2020 at 2:44 PM

IMHO this should be backported to the next version in 5.4 as well.

Nathan XuSeptember 3, 2020 at 9:02 PM

PR created at:

Fixed

Details

Assignee

Reporter

Labels

Components

Fix versions

Affects versions

Priority

Created September 3, 2020 at 11:15 AM
Updated September 30, 2020 at 5:35 PM
Resolved September 9, 2020 at 2:37 PM