Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public interface BookRepository extends CrudRepository<BookEntity, UUID> {
- List<BookEntity> findByTitleIgnoreCase(String title);
- List<BookEntity> findByTitleIgnoreCaseAndAuthorIgnoreCase(String title,
- String author);
- List<BookEntity> findByTitleIgnoreCaseAndAuthorIgnoreCaseAndGenre(
- String title,
- String author,
- Genre genre);
- List<BookEntity> findByTitleIgnoreCaseAndGenre(String title, Genre genre);
- List<BookEntity> findByAuthorIgnoreCase(String author);
- List<BookEntity> findByAuthorIgnoreCaseAndGenre(String author, Genre genre);
- List<BookEntity> findByGenre(Genre genre);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement