Skip to content

Commit c7762f4

Browse files
committed
Polishing.
Fix typos. Add since tag. See #2078 Original pull request: #2081
1 parent 068c957 commit c7762f4

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

spring-data-relational/src/main/java/org/springframework/data/relational/core/conversion/MappingRelationalConverter.java

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,16 @@
4444
import org.springframework.data.mapping.PersistentPropertyAccessor;
4545
import org.springframework.data.mapping.PersistentPropertyPathAccessor;
4646
import org.springframework.data.mapping.context.MappingContext;
47-
import org.springframework.data.mapping.model.*;
47+
import org.springframework.data.mapping.model.CachingValueExpressionEvaluatorFactory;
48+
import org.springframework.data.mapping.model.ConvertingPropertyAccessor;
49+
import org.springframework.data.mapping.model.EntityInstantiator;
50+
import org.springframework.data.mapping.model.ParameterValueProvider;
51+
import org.springframework.data.mapping.model.PersistentEntityParameterValueProvider;
52+
import org.springframework.data.mapping.model.PropertyValueProvider;
53+
import org.springframework.data.mapping.model.SimpleTypeHolder;
54+
import org.springframework.data.mapping.model.SpELContext;
55+
import org.springframework.data.mapping.model.ValueExpressionEvaluator;
56+
import org.springframework.data.mapping.model.ValueExpressionParameterValueProvider;
4857
import org.springframework.data.projection.EntityProjection;
4958
import org.springframework.data.projection.EntityProjectionIntrospector;
5059
import org.springframework.data.projection.EntityProjectionIntrospector.ProjectionPredicate;
@@ -784,16 +793,18 @@ private Object writeCollection(Iterable<?> value, TypeInformation<?> type) {
784793
Class<?> targetComponentType = mapped.get(0).getClass();
785794
targetType = Array.newInstance(targetComponentType, 0).getClass();
786795
}
796+
787797
return getConversionService().convert(mapped, targetType);
788798
}
789799

790800
/**
791-
* Unwraps technology specific wrappers. Custom conversions may choose to return a wrapper class that contains additional information for the technology driver.
792-
* These wrappers can't be used as members of a collection, therefore we may have to unwrap the values.
793-
*
794-
* This method allows technology specific implemenations to provide such an unwrapping mechanism.
801+
* Unwraps technology-specific wrappers. Custom conversions may choose to return a wrapper class that contains
802+
* additional information for the driver. These wrappers can't be used as members of a collection, therefore we may
803+
* have to unwrap the values. This method allows technology-specific implementations to provide such an unwrapping
804+
* mechanism.
795805
*
796806
* @param convertedValue a value that might need unwrapping.
807+
* @since 4.0
797808
*/
798809
@Nullable
799810
protected Object unwrap(@Nullable Object convertedValue) {

0 commit comments

Comments
 (0)