- 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
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
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)