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.ListCrudRepository<Credential,,Long> org.springframework.data.repository.ListPagingAndSortingRepository<Credential,,Long> org.springframework.data.repository.PagingAndSortingRepository<Credential,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<Credential>,org.springframework.data.repository.Repository<Credential,Long>
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
Modifier and TypeMethodDescriptiongetByUserUUID(String uuid) getFromRealmLogin(String realm, String userlogin) getUUIDFromRealmLogin(String realm, String userlogin) Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
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) -
getUUIDFromRealmLogin
-