Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Repository interface base class
public interface Repository<T> {
T find(String guid);
List<T> findAll();
void add(T item);
void add(List<T> items);
void update(T item);
void update(List<T> item);
void remove(T item);
void clear(Class<T> clazz);
List<T> query(Specification specification);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment