@Transactional(readOnly=true) public interface SiteRepository extends SearchRepository<SiteImpl,Integer>
Modifier and Type | Method and Description |
---|---|
SiteImpl |
findByDomain(String domain) |
SiteImpl |
findByHost(String host) |
SiteImpl |
findByName(String name) |
List<SiteImpl> |
findByNameIn(Iterable<String> siteNames) |
List<SiteImpl> |
findSites() |
List<SiteImpl> |
findSitesForApplication(Integer applicationId) |
List<SiteImpl> |
findSitesForApplication(Integer applicationId,
boolean active) |
List<Integer> |
getSiteIds() |
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
@Query(value="select s from SiteImpl s join s.siteApplications p where p.application.id= ?1") List<SiteImpl> findSitesForApplication(Integer applicationId)
@Query(value="select s from SiteImpl s join s.siteApplications p where p.application.id= ?1 and s.active=?2") List<SiteImpl> findSitesForApplication(Integer applicationId, boolean active)
Copyright © 2011–2019 aiticon GmbH. All rights reserved.