From 38d2e6b95d29dce4b5cfb14ae9d430bc35421ff7 Mon Sep 17 00:00:00 2001 From: Jens Schauder Date: Fri, 5 Jul 2024 13:48:32 +0200 Subject: [PATCH] fix the integration test --- .../relational/core/conversion/MappingRelationalConverter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 713dea6d7f..215d255d45 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) {