@Repository public interface LicenseSubCategoryRepository extends org.springframework.data.jpa.repository.JpaRepository<LicenseSubCategory,Long>
| Modifier and Type | Method and Description |
|---|---|
List<LicenseSubCategory> |
findAll() |
List<LicenseSubCategory> |
findAllByCategoryId(Long id) |
LicenseSubCategory |
findByCode(String code) |
List<LicenseSubCategory> |
findByLicenseType_Name(String licenseTypeName) |
LicenseSubCategory |
findByName(String name) |
LicenseSubCategory |
findOne(Long id) |
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, flush, getOne, save, saveAndFlushfindAll@Query(value="select sc from org.egov.tl.entity.LicenseSubCategory sc where upper(sc.name) = upper(:subCategoryName)") LicenseSubCategory findByName(@Param(value="subCategoryName") String name)
@Query(value="select sc from org.egov.tl.entity.LicenseSubCategory sc where upper(sc.code) = upper(:subCategoryCode)") LicenseSubCategory findByCode(@Param(value="subCategoryCode") String code)
@Query(value="select sc from org.egov.tl.entity.LicenseSubCategory sc where sc.id = :subCategoryId") LicenseSubCategory findOne(@Param(value="subCategoryId") Long id)
findOne in interface org.springframework.data.repository.CrudRepository<LicenseSubCategory,Long>@Query(value="select sc from org.egov.tl.entity.LicenseSubCategory sc order by sc.id") List<LicenseSubCategory> findAll()
findAll in interface org.springframework.data.repository.CrudRepository<LicenseSubCategory,Long>findAll in interface org.springframework.data.jpa.repository.JpaRepository<LicenseSubCategory,Long>@Query(value="select sc from org.egov.tl.entity.LicenseSubCategory sc where sc.category.id = :categoryId") List<LicenseSubCategory> findAllByCategoryId(@Param(value="categoryId") Long id)
List<LicenseSubCategory> findByLicenseType_Name(String licenseTypeName)
Copyright © 2015–2016 eGovernments Foundation. All rights reserved.