Commit 1c5aa904 authored by Noel Alonso's avatar Noel Alonso
Browse files

Añade constructor para sobreescribir index

parent f8dfeb25
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -32,6 +32,10 @@ public abstract class GeoDataESRepository<TModel extends Feature<?, ?>>
		super(INDEX, TYPE);
	}

	protected GeoDataESRepository(String[] index, String type) {
		super(index, type);
	}

	@Override
	protected String getMappingFilePath(String index, String type) {
		return MAPPING_BASE_PATH + "geodata/" + index + MAPPING_FILE_EXTENSION;
+4 −0
Original line number Diff line number Diff line
@@ -56,6 +56,10 @@ public abstract class GeoFixedBaseESRepository<TModel extends Feature<GeoDataPro
		super();
	}

	public GeoFixedBaseESRepository(String[] index, String type) {
		super(index, type);
	}

	@SuppressWarnings("unchecked")
	public <T extends Geometry> GeoSearchWrapper<GeoDataProperties, T> findByDataDefinition(Long dataDefinitionId) {