Interface AthleteRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<Athlete,Long>, org.springframework.data.jpa.repository.JpaRepository<@NonNull Athlete,@NonNull Long>, org.springframework.data.repository.ListCrudRepository<Athlete,Long>, org.springframework.data.repository.ListPagingAndSortingRepository<Athlete,Long>, org.springframework.data.repository.PagingAndSortingRepository<Athlete,Long>, org.springframework.data.repository.query.QueryByExampleExecutor<Athlete>, org.springframework.data.repository.Repository<Athlete,Long>

@Repository public interface AthleteRepository extends org.springframework.data.jpa.repository.JpaRepository<@NonNull Athlete,@NonNull Long>
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.data.domain.Page<Athlete>
    findAllOrderedByKnownName(org.springframework.data.domain.Pageable pageable)
    Returns a Page of all athletes ordered by their knownName in ascending order.

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.repository.ListCrudRepository

    findAll, findAllById, saveAll

    Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne
  • Method Details

    • findAllOrderedByKnownName

      @Query("SELECT a FROM Athlete a ORDER BY a.knownName") org.springframework.data.domain.Page<Athlete> findAllOrderedByKnownName(org.springframework.data.domain.Pageable pageable)
      Returns a Page of all athletes ordered by their knownName in ascending order.
      Parameters:
      pageable - the pagination information
      Returns:
      a Page of all athletes ordered by known name