Interface SiteRepository

    • Method Detail

      • findSites

        @Query("select s from SiteImpl s")
        List<SiteImpl> findSites()
      • getSiteIds

        @Query("select s.id from SiteImpl s")
        List<Integer> getSiteIds()
      • findSitesForApplication

        @Query("select s from SiteImpl s join s.siteApplications p where p.application.id= ?1")
        List<SiteImpl> findSitesForApplication​(Integer applicationId)
      • findSitesForApplication

        @Query("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)