public interface SubjectRepository extends SearchRepository<SubjectImpl,Integer>
Modifier and Type | Method and Description |
---|---|
SubjectImpl |
findByEmail(String email) |
SubjectImpl |
findByName(String name) |
List<SubjectImpl> |
findByUserType(UserType type) |
List<SubjectImpl> |
findSubjectsForApplication(Integer applicationId) |
createSearchQuery, detach, getHistory, getRevision, getRevisionNumber, isUnique, isUnique, search, search, search, search
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAll, flush, getOne, save, saveAndFlush
findAll
count, delete, delete, delete, deleteAll, exists, findOne, save
SubjectImpl findByName(String name)
SubjectImpl findByEmail(String email)
List<SubjectImpl> findByUserType(UserType type)
@Query(value="select distinct(s) from GroupImpl g join g.subjects s join g.roles pr left outer join pr.permissions p where pr.application.id = ?1") List<SubjectImpl> findSubjectsForApplication(Integer applicationId)
Copyright © 2011–2019 aiticon GmbH. All rights reserved.