|
|
|
@ -15,6 +15,10 @@ |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
package org.springframework.data.relational.core.conversion; |
|
|
|
package org.springframework.data.relational.core.conversion; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.Collections; |
|
|
|
|
|
|
|
import java.util.Optional; |
|
|
|
|
|
|
|
import java.util.function.Function; |
|
|
|
|
|
|
|
|
|
|
|
import org.springframework.core.convert.ConversionService; |
|
|
|
import org.springframework.core.convert.ConversionService; |
|
|
|
import org.springframework.core.convert.support.ConfigurableConversionService; |
|
|
|
import org.springframework.core.convert.support.ConfigurableConversionService; |
|
|
|
import org.springframework.core.convert.support.DefaultConversionService; |
|
|
|
import org.springframework.core.convert.support.DefaultConversionService; |
|
|
|
@ -37,10 +41,6 @@ import org.springframework.lang.Nullable; |
|
|
|
import org.springframework.util.Assert; |
|
|
|
import org.springframework.util.Assert; |
|
|
|
import org.springframework.util.ClassUtils; |
|
|
|
import org.springframework.util.ClassUtils; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.Collections; |
|
|
|
|
|
|
|
import java.util.Optional; |
|
|
|
|
|
|
|
import java.util.function.Function; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* {@link RelationalConverter} that uses a {@link MappingContext} to apply basic conversion of relational values to |
|
|
|
* {@link RelationalConverter} that uses a {@link MappingContext} to apply basic conversion of relational values to |
|
|
|
* property values. |
|
|
|
* property values. |
|
|
|
@ -63,7 +63,7 @@ public class BasicRelationalConverter implements RelationalConverter { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* Creates a new {@link BasicRelationalConverter} given {@link MappingContext}. |
|
|
|
* Creates a new {@link BasicRelationalConverter} given {@link MappingContext}. |
|
|
|
* |
|
|
|
* |
|
|
|
* @param context must not be {@literal null}. org.springframework.data.jdbc.core.DefaultDataAccessStrategyUnitTests |
|
|
|
* @param context must not be {@literal null}. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public BasicRelationalConverter( |
|
|
|
public BasicRelationalConverter( |
|
|
|
MappingContext<? extends RelationalPersistentEntity<?>, ? extends RelationalPersistentProperty> context) { |
|
|
|
MappingContext<? extends RelationalPersistentEntity<?>, ? extends RelationalPersistentProperty> context) { |
|
|
|
|