Browse Source

BookHash: add findByBookId method

Signed-off-by: Pekka Helenius <fincer89@hotmail.com>
v0.0.4-alpha
Pekka Helenius 4 years ago
parent
commit
7ea9f1ccef
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      bookstore/src/main/java/com/fjordtek/bookstore/model/book/BookHashRepository.java

+ 2
- 0
bookstore/src/main/java/com/fjordtek/bookstore/model/book/BookHashRepository.java View File

@ -26,6 +26,8 @@ public interface BookHashRepository extends CrudRepository<BookHash, String> {
BookHash findByHashId(String bookHashId);
BookHash findByBookId(@Param("bookid") Long bookId);
/*
* We need to override native delete method.
* This is a native query, do not unnecessarily validate it.


Loading…
Cancel
Save