Skip to content

Commit da34943

Browse files
committed
renamed ArangoOperations.find(Iterable) to ArangoOperations.findAll(Iterable)
1 parent 9354a9f commit da34943

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/main/java/com/arangodb/springframework/core/ArangoOperations.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ <T> MultiDocumentEntity<DocumentUpdateEntity<?>> replaceAll(Iterable<? extends T
351351
* @return the documents
352352
* @throws DataAccessException
353353
*/
354-
<T> Iterable<T> find(final Iterable<?> ids, final Class<T> entityClass) throws DataAccessException;
354+
<T> Iterable<T> findAll(final Iterable<?> ids, final Class<T> entityClass) throws DataAccessException;
355355

356356
/**
357357
* Creates new documents from the given documents, unless there is already a document with the _key given. If no

src/main/java/com/arangodb/springframework/core/template/ArangoTemplate.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ public <T> Iterable<T> findAll(final Class<T> entityClass) throws DataAccessExce
476476
}
477477

478478
@Override
479-
public <T> Iterable<T> find(final Iterable<?> ids, final Class<T> entityClass)
479+
public <T> Iterable<T> findAll(final Iterable<?> ids, final Class<T> entityClass)
480480
throws DataAccessException {
481481
try {
482482
final Collection<String> keys = new ArrayList<>();

src/main/java/com/arangodb/springframework/repository/SimpleArangoRepository.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public Iterable<T> findAll() {
132132
*/
133133
@Override
134134
public Iterable<T> findAllById(final Iterable<ID> ids) {
135-
return arangoOperations.find(ids, domainClass);
135+
return arangoOperations.findAll(ids, domainClass);
136136
}
137137

138138
/**

src/test/java/com/arangodb/springframework/core/template/ArangoTemplateTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public void getDocuments() {
176176
final Customer c1 = new Customer("John", "Doe", 30);
177177
final Customer c2 = new Customer("John2", "Doe", 30);
178178
template.insertAll(Arrays.asList(c1, c2), Customer.class);
179-
final Iterable<Customer> customers = template.find(Arrays.asList(c1.getId(), c2.getId()), Customer.class);
179+
final Iterable<Customer> customers = template.findAll(Arrays.asList(c1.getId(), c2.getId()), Customer.class);
180180
assertThat(customers, is(notNullValue()));
181181
assertThat(
182182
StreamSupport.stream(customers.spliterator(), false).map((e) -> e.getId()).collect(Collectors.toList()),

0 commit comments

Comments
 (0)