Interface AdminRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<Admin,String>, org.springframework.data.repository.Repository<Admin,String>

@Repository public interface AdminRepository extends org.springframework.data.repository.CrudRepository<Admin,String>
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    This method returns an Admin entity with a given email.

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

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, findById, save, saveAll
  • Method Details

    • findByEmail

      Optional<Admin> findByEmail(String email)
      This method returns an Admin entity with a given email.
      Parameters:
      email - email address of the admin
      Returns:
      Optional of Admin (empty if not found)
    • existsByEmail

      boolean existsByEmail(String email)