Class BookRepository
java.lang.Object
io.micronaut.data.document.tck.repositories.BookRepository
- All Implemented Interfaces:
CrudRepository<Book,,String> GenericRepository<Book,,String> PageableRepository<Book,String>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract intabstract intabstract intdeleteByIdAndAuthorId(String id, String authorId) abstract voidfindAll()Returns all instances of the type.findByAuthorName(String name) abstract BookfindByTitle(String title) findByTitleIn(@Nullable String[] arg0) findByTotalPagesGreaterThan(int totalPages, Pageable pageable) listByTitleIn(@Nullable String[] arg0) listByTitleIn(@Nullable Collection<String> arg0) listByTitleIn(@Nullable List<String> arg0) protected Authorprotected BookvoidsaveAuthorBooks(List<AuthorBooksDto> authorBooksDtos) abstract longupdateAuthor(String id, Author author) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save, saveAll, update, updateAllMethods inherited from interface io.micronaut.data.repository.PageableRepository
findAll, findAll
-
Field Details
-
authorRepository
-
-
Constructor Details
-
BookRepository
-
-
Method Details
-
findByTotalPagesGreaterThan
-
findAll
Description copied from interface:CrudRepositoryReturns all instances of the type.- Specified by:
findAllin interfaceCrudRepository<Book,String> - Returns:
- all entities
-
findByTitle
-
updateAuthor
-
deleteByIdAndAuthorId
-
findTop3ByAuthorNameOrderByTitle
-
queryTop3ByAuthorNameOrderByTitle
-
findByAuthorIsNull
-
findByAuthorIsNotNull
-
countByTitleIsEmpty
public abstract int countByTitleIsEmpty() -
countByTitleIsNotEmpty
public abstract int countByTitleIsNotEmpty() -
deleteByTitleIsEmptyOrTitleIsNull
public abstract void deleteByTitleIsEmptyOrTitleIsNull() -
findTop3OrderByTitle
-
findByAuthorName
-
listByTitleIn
-
listByTitleIn
-
listByTitleIn
-
findByTitleIn
-
saveAuthorBooks
-
newAuthor
-
newBook
-