Package cvut.fel.service
Class LibraryServiceImp
java.lang.Object
cvut.fel.service.LibraryServiceImp
- All Implemented Interfaces:
LibraryService
@Service public class LibraryServiceImp extends java.lang.Object implements LibraryService
-
Constructor Summary
Constructors Constructor Description LibraryServiceImp(LibraryRepository libraryRepository, BookRepository bookRepository)
-
Method Summary
Modifier and Type Method Description boolean
addBookToLibrary(java.lang.Long libraryId, java.lang.Long bookId)
Library
findById(java.lang.Long id)
-
Constructor Details
-
LibraryServiceImp
@Autowired public LibraryServiceImp(LibraryRepository libraryRepository, BookRepository bookRepository)
-
-
Method Details
-
addBookToLibrary
public boolean addBookToLibrary(java.lang.Long libraryId, java.lang.Long bookId)- Specified by:
addBookToLibrary
in interfaceLibraryService
-
findById
- Specified by:
findById
in interfaceLibraryService
-