Package tv.hd3g.authkit.mod.repository
Interface CredentialRepository
-
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<Credential,Long>,org.springframework.data.jpa.repository.JpaRepository<Credential,Long>,org.springframework.data.repository.PagingAndSortingRepository<Credential,Long>,org.springframework.data.repository.query.QueryByExampleExecutor<Credential>,org.springframework.data.repository.Repository<Credential,Long>
@Repository public interface CredentialRepository extends org.springframework.data.jpa.repository.JpaRepository<Credential,Long>
See https://docs.spring.io/spring-data/jpa/docs/1.5.0.RELEASE/reference/html/jpa.repositories.html
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CredentialgetByUserUUID(String uuid)CredentialgetFromRealmLogin(String realm, String userlogin)StringgetUUIDFromRealmLogin(String realm, String userlogin)-
Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save
-
Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush
-
-
-
-
Method Detail
-
getFromRealmLogin
@Query("SELECT c FROM Credential c WHERE c.realm = ?1 AND c.login = ?2 ") Credential getFromRealmLogin(String realm, String userlogin)
-
getByUserUUID
@Query("SELECT c FROM Credential c JOIN c.user u WHERE u.uuid = ?1") Credential getByUserUUID(String uuid)
-
-