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 TypeMethodDescriptionfindByEmail(String email) Finds an administrator by their email address.Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findByEmail
Finds an administrator by their email address.- Parameters:
email- the email address to search for- Returns:
- an
Optionalcontaining the administrator if found, empty otherwise
-