Skip to content

Instantly share code, notes, and snippets.

@Pudding124
Created April 13, 2018 07:51
Show Gist options
  • Save Pudding124/cda09a6e31c6324712317656648bf52e to your computer and use it in GitHub Desktop.
Save Pudding124/cda09a6e31c6324712317656648bf52e to your computer and use it in GitHub Desktop.
public interface GraphRepository<T> extends Neo4jRepository<T, Long> {
<S extends T> S save(S s, int depth);
<S extends T> Iterable<S> save(Iterable<S> entities, int depth);
T findOne(Long id, int depth);
Iterable<T> findAll();
Iterable<T> findAll(int depth);
Iterable<T> findAll(Sort sort);
Iterable<T> findAll(Sort sort, int depth);
Iterable<T> findAll(Iterable<Long> ids);
Iterable<T> findAll(Iterable<Long> ids, int depth);
Iterable<T> findAll(Iterable<Long> ids, Sort sort);
Iterable<T> findAll(Iterable<Long> ids, Sort sort, int depth);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment