@Override public <T> Iterable<T> find(final Iterable<? extends Object> ids, final Class<T> entityClass) throws DataAccessException { try { final Collection<String> keys = new ArrayList<>(); ids.forEach(id -> keys.add(determineDocumentKeyFromId(id))); final MultiDocumentEntity<VPackSlice> docs = _collection(entityClass).getDocuments(keys, VPackSlice.class); return docs.getDocuments().stream().map(doc -> fromVPack(entityClass, doc)).collect(Collectors.toList()); } catch (final ArangoDBException e) { throw translateExceptionIfPossible(e); } }
@Override public <T> Iterable<T> find(final Iterable<? extends Object> ids, final Class<T> entityClass) throws DataAccessException { try { final Collection<String> keys = new ArrayList<>(); ids.forEach(id -> keys.add(determineDocumentKeyFromId(id))); final MultiDocumentEntity<VPackSlice> docs = _collection(entityClass).getDocuments(keys, VPackSlice.class); return docs.getDocuments().stream().map(doc -> fromVPack(entityClass, doc)).collect(Collectors.toList()); } catch (final ArangoDBException e) { throw translateExceptionIfPossible(e); } }