Interface ExternalOtpValidationRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<ExternalOtpValidation,,Integer> org.springframework.data.jpa.repository.JpaRepository<ExternalOtpValidation,,Integer> org.springframework.data.repository.PagingAndSortingRepository<ExternalOtpValidation,,Integer> org.springframework.data.repository.query.QueryByExampleExecutor<ExternalOtpValidation>,org.springframework.data.repository.Repository<ExternalOtpValidation,Integer>
@Repository
public interface ExternalOtpValidationRepository
extends org.springframework.data.jpa.repository.JpaRepository<ExternalOtpValidation,Integer>
Repository interface to do queries for ExternalOTPValidation data.
-
Method Summary
Modifier and TypeMethodDescriptionfindOneById(String id) Get external OTP validation is in BBDD.<S extends ExternalOtpValidation>
SsaveAndFlush(S entity) Saves an entity and flushes changes instantly.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, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlushMethods 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
-
findOneById
Get external OTP validation is in BBDD.- Parameters:
id- id of external OTP validation- Returns:
- FirmControl object if it is possiblr to find.
-
saveAndFlush
Saves an entity and flushes changes instantly.- Specified by:
saveAndFlushin interfaceorg.springframework.data.jpa.repository.JpaRepository<ExternalOtpValidation,Integer> - Parameters:
entity- externalOTPValidation entity to save.- Returns:
- the saved entity
-