Package com.example.seraphine.repository
Interface ConfirmationTokenRepo
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<ConfirmationToken,
,Long> org.springframework.data.jpa.repository.JpaRepository<ConfirmationToken,
,Long> org.springframework.data.repository.PagingAndSortingRepository<ConfirmationToken,
,Long> org.springframework.data.repository.query.QueryByExampleExecutor<ConfirmationToken>
,org.springframework.data.repository.Repository<ConfirmationToken,
Long>
@Repository
@Transactional(readOnly=true)
public interface ConfirmationTokenRepo
extends org.springframework.data.jpa.repository.JpaRepository<ConfirmationToken,Long>
Repository interface to access from data and model, also create entity for confirmation token
- Author:
- Loc Bui Nhien
-
Method Summary
Modifier and TypeMethodDescriptionfindByToken
(String token) 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
-
updateConfirmedAt
@Transactional @Modifying @Query("UPDATE ConfirmationToken c SET c.confirmedAt = ?2 WHERE c.token = ?1") int updateConfirmedAt(String token, LocalDateTime confirmedAt)
-