Commit c3c73f1a authored by Noel Alonso's avatar Noel Alonso
Browse files

Añade maping context para definir el tipo a mapear

parent 7fe400fe
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -59,7 +59,7 @@ public abstract class RGeoDataService<TModel extends Feature<?, ?>, TDTO extends
		GeoSearchWrapper<?> result = repository.find(query);

		GeoJSONFeatureCollectionDTO collection = mapper.getMapperFacade().map(result.getHits(),
				GeoJSONFeatureCollectionDTO.class);
				GeoJSONFeatureCollectionDTO.class, getMappingContext());

		if (result.getAggregations() != null) {
			collection.set_aggs(