Skip to content

Instantly share code, notes, and snippets.

@HelloThisIsFlo
Created January 26, 2017 08:48
Show Gist options
  • Save HelloThisIsFlo/c83178c05606d12d1513c585107672b0 to your computer and use it in GitHub Desktop.
Save HelloThisIsFlo/c83178c05606d12d1513c585107672b0 to your computer and use it in GitHub Desktop.
public interface BookRepository {
BookId save(Book book);
Book findById(BookId bookId);
Book findByTitle(String title);
Book findByAuthor(String author);
List<Book> findAll();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment