Package com.espacogeek.geek.repositories
Interface EmailVerificationTokenRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<EmailVerificationTokenModel,,Integer> org.springframework.data.jpa.repository.JpaRepository<EmailVerificationTokenModel,,Integer> org.springframework.data.repository.ListCrudRepository<EmailVerificationTokenModel,,Integer> org.springframework.data.repository.ListPagingAndSortingRepository<EmailVerificationTokenModel,,Integer> org.springframework.data.repository.PagingAndSortingRepository<EmailVerificationTokenModel,,Integer> org.springframework.data.repository.query.QueryByExampleExecutor<EmailVerificationTokenModel>,org.springframework.data.repository.Repository<EmailVerificationTokenModel,Integer>
@Repository
public interface EmailVerificationTokenRepository
extends org.springframework.data.jpa.repository.JpaRepository<EmailVerificationTokenModel,Integer>
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteByUserAndTokenType(UserModel user, String tokenType) voidfindByToken(String token) findByTokenAndTokenType(String token, String tokenType) 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
-
findByToken
-
findByTokenAndTokenType
-
deleteExpiredTokens
@Modifying @Query("DELETE FROM EmailVerificationTokenModel t WHERE t.expiresAt < :now") void deleteExpiredTokens(@Param("now") LocalDateTime now) -
deleteByUserAndTokenType
-