Interface WeeklyEmailRegistrationTokenRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<WeeklyEmailRegistrationToken,UUID>, org.springframework.data.jpa.repository.JpaRepository<WeeklyEmailRegistrationToken,UUID>, org.springframework.data.repository.ListCrudRepository<WeeklyEmailRegistrationToken,UUID>, org.springframework.data.repository.ListPagingAndSortingRepository<WeeklyEmailRegistrationToken,UUID>, org.springframework.data.repository.PagingAndSortingRepository<WeeklyEmailRegistrationToken,UUID>, org.springframework.data.repository.query.QueryByExampleExecutor<WeeklyEmailRegistrationToken>, org.springframework.data.repository.Repository<WeeklyEmailRegistrationToken,UUID>

public interface WeeklyEmailRegistrationTokenRepository extends org.springframework.data.jpa.repository.JpaRepository<WeeklyEmailRegistrationToken,UUID>
Repository for WeeklyEmailRegistrationToken entities.
  • Method Summary

    Modifier and Type
    Method
    Description
    Finds a weekly email registration token by user ID.

    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, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

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

    findAll, findAllById, saveAll

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

    findAll

    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

    • findByUserId

      Finds a weekly email registration token by user ID.
      Parameters:
      userId - The ID of the user.
      Returns:
      An optional containing the token if found, otherwise empty.