Interface SportRepository

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

public interface SportRepository extends org.springframework.data.jpa.repository.JpaRepository<Sport,Long>
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
     
     

    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

    • existsByName

      boolean existsByName(String name)
    • findByName

      Optional<Sport> findByName(String name)
    • findAllNames

      @Query("select s.name from Sport s order by s.name asc") List<String> findAllNames()