Class VillageRepositoryImpl

    • Constructor Detail

      • VillageRepositoryImpl

        public VillageRepositoryImpl()
    • Method Detail

      • search

        public org.springframework.data.domain.Page<Village> search​(java.lang.String villageName,
                                                                    java.lang.String parentFacility,
                                                                    java.lang.String sectorName,
                                                                    java.lang.String districtName,
                                                                    org.springframework.data.domain.Pageable pageable)
        Finds Villages matching all of the provided parameters. If there are no parameters, return all Villages.
        Specified by:
        search in interface VillageRepositoryCustom
        Parameters:
        pageable - pagination parameters (page size, page number, sort order)
        sectorName - name of Sector that may belong to village
        districtName - name of District that may belong to village
        villageName - name of village
        parentFacility - name of Facility that may belong to village
        Returns:
        page with found villages
      • getPath

        protected javax.persistence.criteria.Path getPath​(javax.persistence.criteria.Root root,
                                                          org.springframework.data.domain.Sort.Order order)
        Overrides:
        getPath in class BaseRepositoryImpl