diff --git a/spring-data-relational/src/main/java/org/springframework/data/relational/core/conversion/MappingRelationalConverter.java b/spring-data-relational/src/main/java/org/springframework/data/relational/core/conversion/MappingRelationalConverter.java index 713dea6d7fe..215d255d458 100644 --- a/spring-data-relational/src/main/java/org/springframework/data/relational/core/conversion/MappingRelationalConverter.java +++ b/spring-data-relational/src/main/java/org/springframework/data/relational/core/conversion/MappingRelationalConverter.java @@ -703,7 +703,7 @@ public Object writeValue(@Nullable Object value, TypeInformation type) { Optional> customWriteTarget = getConversions().getCustomWriteTarget(type.getType()); if (customWriteTarget.isPresent()) { - return getConversionService().convert(value, customWriteTarget.get()); + return getPotentiallyConvertedSimpleWrite(getConversionService().convert(value, customWriteTarget.get())); } if (TypeInformation.OBJECT != type) {