Package tv.hd3g.authkit.mod.repository
Interface TotpbackupcodeRepository
-
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<Totpbackupcode,Long>,org.springframework.data.jpa.repository.JpaRepository<Totpbackupcode,Long>,org.springframework.data.repository.PagingAndSortingRepository<Totpbackupcode,Long>,org.springframework.data.repository.query.QueryByExampleExecutor<Totpbackupcode>,org.springframework.data.repository.Repository<Totpbackupcode,Long>
@Repository public interface TotpbackupcodeRepository extends org.springframework.data.jpa.repository.JpaRepository<Totpbackupcode,Long>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Set<Totpbackupcode>getByCredential(Credential c)Set<String>getByUserUUID(String uuid)-
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
-
-
-
-
Method Detail
-
getByUserUUID
@Query("SELECT bc.code FROM Totpbackupcode bc JOIN bc.credential c JOIN c.user u WHERE u.uuid = ?1") Set<String> getByUserUUID(String uuid)
-
getByCredential
@Query("SELECT bc FROM Totpbackupcode bc WHERE bc.credential = ?1") Set<Totpbackupcode> getByCredential(Credential c)
-
-