diff --git a/pom.xml b/pom.xml
index 518022e..44be38c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -56,11 +56,6 @@
org.projectlombok
lombok
-
- org.liquibase
- liquibase-core
- ${liquibase.version}
-
diff --git a/src/main/java/org/bookstore/mapper/BookMapper.java b/src/main/java/org/bookstore/mapper/BookMapper.java
index 5b89309..1dfa9e1 100644
--- a/src/main/java/org/bookstore/mapper/BookMapper.java
+++ b/src/main/java/org/bookstore/mapper/BookMapper.java
@@ -18,5 +18,5 @@ public interface BookMapper {
Book toBook(CreateBookRequestDto bookRequestDto);
- void updateBookFromDto(CreateBookRequestDto book, @MappingTarget Book entity);
+ void updateBook(CreateBookRequestDto book, @MappingTarget Book entity);
}
diff --git a/src/main/java/org/bookstore/repository/BookRepository.java b/src/main/java/org/bookstore/repository/BookRepository.java
index bece062..7781513 100644
--- a/src/main/java/org/bookstore/repository/BookRepository.java
+++ b/src/main/java/org/bookstore/repository/BookRepository.java
@@ -2,7 +2,9 @@
import org.bookstore.model.Book;
import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.stereotype.Repository;
+@Repository
public interface BookRepository extends JpaRepository {
}
diff --git a/src/main/java/org/bookstore/service/impl/BookServiceImpl.java b/src/main/java/org/bookstore/service/impl/BookServiceImpl.java
index 5c77c64..353e383 100644
--- a/src/main/java/org/bookstore/service/impl/BookServiceImpl.java
+++ b/src/main/java/org/bookstore/service/impl/BookServiceImpl.java
@@ -42,7 +42,7 @@ public BookDto findById(Long id) {
public BookDto updateBookById(Long id, CreateBookRequestDto book) {
Book bookFromDb = bookRepository.findById(id)
.orElseThrow(() -> new EntityNotFoundException("Can't update book with id " + id));
- bookMapper.updateBookFromDto(book, bookFromDb);
+ bookMapper.updateBook(book, bookFromDb);
return bookMapper.toDto(bookRepository.save(bookFromDb));
}