@Transactional(readOnly=true) 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
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAll, flush, getOne, save, saveAndFlush
findAll
count, delete, delete, delete, deleteAll, exists, findOne, save
count, exists, findAll, findOne
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–2017 aiticon GmbH. All rights reserved.