From b6b9b2a25d0f8648c50229d3a7a32b8dca950b6d Mon Sep 17 00:00:00 2001 From: Pekka Helenius Date: Sat, 3 Oct 2020 15:05:15 +0300 Subject: [PATCH] Change BOOK to Book in HQL query Signed-off-by: Pekka Helenius --- .../java/com/fjordtek/bookstore/model/book/BookRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookstore/src/main/java/com/fjordtek/bookstore/model/book/BookRepository.java b/bookstore/src/main/java/com/fjordtek/bookstore/model/book/BookRepository.java index b3a6123..0932f39 100644 --- a/bookstore/src/main/java/com/fjordtek/bookstore/model/book/BookRepository.java +++ b/bookstore/src/main/java/com/fjordtek/bookstore/model/book/BookRepository.java @@ -55,7 +55,7 @@ public interface BookRepository extends CrudRepository, BookReposito @Override @Modifying @Query( - value = "DELETE FROM BOOK i WHERE i.id = :id", + value = "DELETE FROM Book i WHERE i.id = :id", nativeQuery = true ) void deleteById(@Param("id") Long id);