Interface AuthorRepository
- All Superinterfaces:
CrudRepository<Author,String>, GenericRepository<Author, String>
-
Method Summary
Modifier and TypeMethodDescriptionfindByBooksTitle(String title) Retrieves an entity by its id.findByName(String name) queryByName(String name) queryByNameRegex(String name) searchByName(String name) voidupdateNickname(String id, @Nullable @Nullable String nickName) Methods inherited from interface CrudRepository
count, delete, deleteAll, deleteAll, deleteById, existsById, findAll, save, saveAll, update, updateAll
-
Method Details
-
findByName
-
updateNickname
-
findById
Description copied from interface:CrudRepositoryRetrieves an entity by its id.- Specified by:
findByIdin interfaceCrudRepository<Author,String> - Parameters:
id- The ID of the entity to retrieve. Must not be null.- Returns:
- the entity with the given id or Optional#empty() if none found
-
queryByName
-
findByBooksTitle
-
searchByName
-
queryByNameRegex
-