Advertisement
Guest User

Untitled

a guest
Mar 20th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement