Interface AdminRepository

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

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

Provides standard CRUD operations as well as custom query methods for retrieving administrators by their email address.

Author:
SportTrack Team
  • Method Summary

    Modifier and Type
    Method
    Description
    Finds an administrator by their email address.

    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

    • findByEmail

      Optional<Admin> findByEmail(String email)
      Finds an administrator by their email address.
      Parameters:
      email - the email address to search for
      Returns:
      an Optional containing the administrator if found, empty otherwise