DATAES-738 - Removing one save method as it does not fit the naming scheme.

This commit is contained in:
Peter-Josef Meisch 2020-02-11 19:03:00 +01:00
parent 9c64dd9c39
commit 77f43ce64c
2 changed files with 5 additions and 20 deletions

View File

@ -146,11 +146,6 @@ public abstract class AbstractElasticsearchTemplate implements ElasticsearchOper
return save(Arrays.asList(entities));
}
@Override
public <T> Iterable<T> save(IndexCoordinates index, T... entities) {
return save(Arrays.asList(entities), index);
}
@Override
public void delete(Query query, Class<?> clazz, IndexCoordinates index) {

View File

@ -79,20 +79,10 @@ public interface DocumentOperations {
*
* @param entities must not be {@literal null}
* @param <T> the entity type
* @return the saved entites as Iterable
* @return the saved entities as Iterable
*/
<T> Iterable<T> save(T... entities);
/**
* saves the given entities to the given index.
*
* @param index the idnex to save the entities in, must not be {@literal null}
* @param entities must not be {@literal null}
* @param <T> the entity type
* @return the saved entites as Iterable
*/
<T> Iterable<T> save(IndexCoordinates index, T... entities);
/**
* Index an object. Will do save or update.
*