@Repository public interface BoundaryTypeRepository extends org.springframework.data.jpa.repository.JpaRepository<BoundaryType,Long>
| Modifier and Type | Method and Description |
|---|---|
List<BoundaryType> |
findByHierarchyTypeId(Long id) |
List<BoundaryType> |
findByHierarchyTypeName(String hierarchyName) |
BoundaryType |
findByHierarchyTypeNameAndLevel(String name,
Long hierarchyLevel) |
List<BoundaryType> |
findByHierarchyTypeNames(Set<String> names) |
BoundaryType |
findByIdAndHierarchy(Long id,
Long hierarchyId) |
BoundaryType |
findByName(String name) |
BoundaryType |
findByNameAndHierarchyType(String name,
HierarchyType hierarchyType) |
BoundaryType |
findByNameAndHierarchyTypeName(String name,
String hierarchyTypeName) |
BoundaryType |
findByNameContainingIgnoreCase(String name) |
BoundaryType |
findByParent(Long parentId) |
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAll, flush, getOne, save, saveAndFlushfindAllBoundaryType findByName(String name)
BoundaryType findByNameContainingIgnoreCase(String name)
@Query(value="select bt from BoundaryType bt where bt.hierarchyType.name=:hierarchyName and bt.hierarchy=:hierarchyLevel") BoundaryType findByHierarchyTypeNameAndLevel(@Param(value="hierarchyName") String name, @Param(value="hierarchyLevel") Long hierarchyLevel)
@Query(value="select bt from BoundaryType bt where bt.hierarchyType.id=:hierarchyId") List<BoundaryType> findByHierarchyTypeId(@Param(value="hierarchyId") Long id)
@Query(value="select bt from BoundaryType bt where bt.parent.id=:parentId") BoundaryType findByParent(@Param(value="parentId") Long parentId)
@Query(value="select bt from BoundaryType bt where bt.id = :id and bt.hierarchyType.id = :hierarchyId") BoundaryType findByIdAndHierarchy(@Param(value="id") Long id, @Param(value="hierarchyId") Long hierarchyId)
BoundaryType findByNameAndHierarchyType(String name, HierarchyType hierarchyType)
@Query(value="select bt from BoundaryType bt where bt.name = :boundaryTypeName and bt.hierarchyType.name = :hierarchyTypeName") BoundaryType findByNameAndHierarchyTypeName(@Param(value="boundaryTypeName") String name, @Param(value="hierarchyTypeName") String hierarchyTypeName)
@Query(value="select bt from BoundaryType bt where bt.hierarchyType.name=:name") List<BoundaryType> findByHierarchyTypeName(@Param(value="name") String hierarchyName)
@Query(value="select bt from BoundaryType bt where bt.hierarchyType.code in :names and bt.name like \'W%\'") List<BoundaryType> findByHierarchyTypeNames(@Param(value="names") Set<String> names)
Copyright © 2015–2017 eGovernments Foundation. All rights reserved.