Delete BookServiceImpl.java

This commit is contained in:
gupta-ashu01 2020-07-17 12:59:18 +05:30 committed by GitHub
parent c7b9e81e15
commit 8cdfb5b0ef
1 changed files with 0 additions and 35 deletions

View File

@ -1,35 +0,0 @@
package com.hexagonal.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hexagonal.domain.Book;
import com.hexagonal.repository.BookRepository;
@Service
public class BookServiceImpl implements BookService {
@Autowired
private BookRepository bookRepository;
@Override
public void addBook(Book book) {
bookRepository.add(book);
}
@Override
public Book buyBook(String isbn) {
return bookRepository.buy(isbn);
}
@Override
public List<Book> listBooks() {
return bookRepository.list();
}
}