Created
August 23, 2017 15:52
-
-
Save aemxn/54b45709f6ac4dc7c2af875d4a3958e0 to your computer and use it in GitHub Desktop.
Repository interface base class
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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