Browse Source

DATACMNS-1299 - Polishing.

Consider GeoResults as native wrapper to properly unwrap its component type.
pull/287/head
Mark Paluch 8 years ago
parent
commit
d85e9e117e
  1. 2
      src/main/java/org/springframework/data/repository/util/QueryExecutionConverters.java

2
src/main/java/org/springframework/data/repository/util/QueryExecutionConverters.java

@ -46,6 +46,7 @@ import org.springframework.core.convert.converter.GenericConverter; @@ -46,6 +46,7 @@ import org.springframework.core.convert.converter.GenericConverter;
import org.springframework.core.convert.support.ConfigurableConversionService;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Slice;
import org.springframework.data.geo.GeoResults;
import org.springframework.data.util.StreamUtils;
import org.springframework.data.util.Streamable;
import org.springframework.data.util.TypeInformation;
@ -302,6 +303,7 @@ public abstract class QueryExecutionConverters { @@ -302,6 +303,7 @@ public abstract class QueryExecutionConverters {
boolean needToUnwrap = type.isCollectionLike() //
|| Slice.class.isAssignableFrom(rawType) //
|| GeoResults.class.isAssignableFrom(rawType) //
|| rawType.isArray() //
|| supports(rawType) //
|| Stream.class.isAssignableFrom(rawType);

Loading…
Cancel
Save