Interface SportRepository

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

@Repository public interface SportRepository extends org.springframework.data.jpa.repository.JpaRepository<Sport,Integer>
Spring Data JPA repository for Sport entities.

Provides standard CRUD operations as well as custom query methods for retrieving sports by their active status.

Author:
SportTrack Team
  • Method Summary

    Modifier and Type
    Method
    Description
    findAllByActive(boolean active)
    Finds all sports matching the given active status.

    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

    • findAllByActive

      List<Sport> findAllByActive(boolean active)
      Finds all sports matching the given active status.
      Parameters:
      active - true to retrieve only active sports, false for inactive
      Returns:
      a list of sports matching the specified active status