Interface AuthorRepository

All Superinterfaces:
CrudRepository<Author,String>, GenericRepository<Author,String>

public interface AuthorRepository extends CrudRepository<Author,String>
  • Method Details

    • findByName

      Author findByName(String name)
    • updateNickname

      void updateNickname(@Id String id, @Parameter("nickName") @Nullable @Nullable String nickName)
    • findById

      @NonNull @NonNull Optional<Author> findById(@NonNull @NotNull @NonNull @NotNull String id)
      Description copied from interface: CrudRepository
      Retrieves an entity by its id.
      Specified by:
      findById in interface CrudRepository<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

      Author queryByName(String name)
    • findByBooksTitle

      Author findByBooksTitle(String title)
    • searchByName

      Author searchByName(String name)
    • queryByNameRegex

      Stream<Author> queryByNameRegex(String name)