SHARE
TWEET

Untitled

a guest Mar 20th, 2017 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public interface BookRepository extends CrudRepository<BookEntity, UUID> {
  2.  
  3.     List<BookEntity> findByTitleIgnoreCase(String title);
  4.  
  5.     List<BookEntity> findByTitleIgnoreCaseAndAuthorIgnoreCase(String title,
  6.             String author);
  7.  
  8.     List<BookEntity> findByTitleIgnoreCaseAndAuthorIgnoreCaseAndGenre(
  9.             String title,
  10.             String author,
  11.             Genre genre);
  12.  
  13.     List<BookEntity> findByTitleIgnoreCaseAndGenre(String title, Genre genre);
  14.  
  15.     List<BookEntity> findByAuthorIgnoreCase(String author);
  16.  
  17.     List<BookEntity> findByAuthorIgnoreCaseAndGenre(String author, Genre genre);
  18.  
  19.     List<BookEntity> findByGenre(Genre genre);
  20. }
RAW Paste Data
Top