MappingJdbcConverter previously tried to create a JdbcValue for simple values via the ConversionService, only to drop the conversion result if the conversion did not result in a JdbcValue eventually. In that case, it triggered an additional (same) conversion to then handle the wrapping of the conversion result into a JdbcValue manually.
This commit alters the flow so that it only triggers the conversion once and manually applies the JdbcValue wrapping only if the result of the original conversion is not a JdbcValue yet.
MappingJdbcConverter
previously tried to create aJdbcValue
for simple values via theConversionService
, only to drop the conversion result if the conversion did not result in aJdbcValue
eventually. In that case, it triggered an additional (same) conversion to then handle the wrapping of the conversion result into aJdbcValue
manually.This commit alters the flow so that it only triggers the conversion once and manually applies the
JdbcValue
wrapping only if the result of the original conversion is not aJdbcValue
yet.