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>

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 Type
    Method
    Description
     
    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, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, 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

    • 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

      @Query("SELECT u.uuid FROM User u JOIN u.credential c WHERE c.realm = ?1 AND c.login = ?2 ") String getUUIDFromRealmLogin(String realm, String userlogin)