|
|
|
@ -54,6 +54,7 @@ import org.springframework.util.ClassUtils; |
|
|
|
* @author Mark Paluch |
|
|
|
* @author Mark Paluch |
|
|
|
* @author Jens Schauder |
|
|
|
* @author Jens Schauder |
|
|
|
* @author Chirag Tailor |
|
|
|
* @author Chirag Tailor |
|
|
|
|
|
|
|
* @author Vincent Galloy |
|
|
|
* @see MappingContext |
|
|
|
* @see MappingContext |
|
|
|
* @see SimpleTypeHolder |
|
|
|
* @see SimpleTypeHolder |
|
|
|
* @see CustomConversions |
|
|
|
* @see CustomConversions |
|
|
|
@ -175,7 +176,11 @@ public class BasicRelationalConverter implements RelationalConverter { |
|
|
|
|
|
|
|
|
|
|
|
// TODO: We should add conversion support for arrays, however,
|
|
|
|
// TODO: We should add conversion support for arrays, however,
|
|
|
|
// these should consider multi-dimensional arrays as well.
|
|
|
|
// these should consider multi-dimensional arrays as well.
|
|
|
|
if (value.getClass().isArray() && !value.getClass().getComponentType().isEnum() && (TypeInformation.OBJECT.equals(type) || type.isCollectionLike())) { |
|
|
|
if (value.getClass().isArray() //
|
|
|
|
|
|
|
|
&& !value.getClass().getComponentType().isEnum() //
|
|
|
|
|
|
|
|
&& (TypeInformation.OBJECT.equals(type) //
|
|
|
|
|
|
|
|
|| type.isCollectionLike()) //
|
|
|
|
|
|
|
|
) { |
|
|
|
return value; |
|
|
|
return value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|