diff --git a/bookstore/src/main/java/com/fjordtek/bookstore/model/book/BookHashRepository.java b/bookstore/src/main/java/com/fjordtek/bookstore/model/book/BookHashRepository.java index 097f0c6..1d5eb72 100644 --- a/bookstore/src/main/java/com/fjordtek/bookstore/model/book/BookHashRepository.java +++ b/bookstore/src/main/java/com/fjordtek/bookstore/model/book/BookHashRepository.java @@ -26,6 +26,8 @@ public interface BookHashRepository extends CrudRepository { 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.