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);