Interface ForgotPasswordTokenRepo

All Superinterfaces:
org.springframework.data.repository.CrudRepository<ForgotPasswordToken,Long>, org.springframework.data.jpa.repository.JpaRepository<ForgotPasswordToken,Long>, org.springframework.data.repository.PagingAndSortingRepository<ForgotPasswordToken,Long>, org.springframework.data.repository.query.QueryByExampleExecutor<ForgotPasswordToken>, org.springframework.data.repository.Repository<ForgotPasswordToken,Long>

@Repository @Transactional(readOnly=true) public interface ForgotPasswordTokenRepo extends org.springframework.data.jpa.repository.JpaRepository<ForgotPasswordToken,Long>
Repository interface to access from data and model, also create entity for password token
Author:
Loc Bui Nhien
  • Method Summary

    Modifier and Type
    Method
    Description
     
    int
    updateConfirmedAt(String token, LocalDateTime confirmedAt)
     

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

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, saveAll, saveAllAndFlush, saveAndFlush

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

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne
  • Method Details

    • findByToken

      Optional<ForgotPasswordToken> findByToken(String token)
    • updateConfirmedAt

      @Transactional @Modifying @Query("UPDATE ForgotPasswordToken c SET c.confirmedAt = ?2 WHERE c.token = ?1") int updateConfirmedAt(String token, LocalDateTime confirmedAt)