do not need

This commit is contained in:
rvsathe 2021-05-11 07:42:36 +05:30 committed by GitHub
parent 4e3516f9f8
commit 42abea54d8
1 changed files with 0 additions and 33 deletions

View File

@ -1,33 +0,0 @@
package com.baeldung.hexagonalPattern.core.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baeldung.hexagonalPattern.adapters.LibraryRepoImpl;
import com.baeldung.hexagonalPattern.core.domain.Book;
import com.baeldung.hexagonalPattern.ports.LibraryService;
@Service
public class LibraryServiceImpl implements LibraryService {
@Autowired
private LibraryRepoImpl bookRepo = new LibraryRepoImpl();
@Override
public int insertBook(Book book) {
bookRepo.insertBook(book);
return 1;
}
@Override
public Book searchBook(String name) {
return bookRepo.searchBook(name);
}
@Override
public List<Book> getAllBooks() {
return bookRepo.getAllBooks();
}
}