Browse Source

Change BOOK to Book in HQL query

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

+ 1
- 1
bookstore/src/main/java/com/fjordtek/bookstore/model/book/BookRepository.java View File

@ -55,7 +55,7 @@ public interface BookRepository extends CrudRepository<Book, Long>, BookReposito
@Override @Override
@Modifying @Modifying
@Query( @Query(
value = "DELETE FROM BOOK i WHERE i.id = :id",
value = "DELETE FROM Book i WHERE i.id = :id",
nativeQuery = true nativeQuery = true
) )
void deleteById(@Param("id") Long id); void deleteById(@Param("id") Long id);


Loading…
Cancel
Save