public interface RoleRepository extends SearchRepository<RoleImpl,Integer>
Modifier and Type | Method and Description |
---|---|
List<RoleImpl> |
findByApplicationId(Integer applicationId) |
RoleImpl |
findByApplicationIdAndName(Integer applicationId,
String name) |
RoleImpl |
findByApplicationNameAndName(String applicationName,
String name) |
List<RoleImpl> |
findRolesForApplicationAndSite(Integer siteId,
Integer applicationId) |
List<RoleImpl> |
findRolesForSite(Integer siteId) |
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
RoleImpl findByApplicationNameAndName(String applicationName, String name)
@Query(value="select r from SiteApplication s inner join s.application p inner join p.roles r where s.id.siteId = ?1 order by p.name, r.name") List<RoleImpl> findRolesForSite(Integer siteId)
Copyright © 2011–2019 aiticon GmbH. All rights reserved.