@Service @Transactional(readOnly=true) public class SubCategoryService extends Object
| Constructor and Description |
|---|
SubCategoryService(SubCategoryRepository subCategoryRepository) |
| Modifier and Type | Method and Description |
|---|---|
SubCategory |
createSubCategory(SubCategory subCategory) |
List<SubCategory> |
getAllActiveSubCategoryByCategoryId(Long categoryId) |
List<SubCategory> |
getAllSubCategory() |
List<SubCategorySearch> |
getSubcategory(Long category,
Long subcategory) |
SubCategory |
getSubCategoryById(Long id) |
SubCategory |
updateSubCategory(SubCategory subCategory) |
@Autowired public SubCategoryService(SubCategoryRepository subCategoryRepository)
public List<SubCategory> getAllActiveSubCategoryByCategoryId(Long categoryId)
public List<SubCategory> getAllSubCategory()
@Transactional public SubCategory createSubCategory(SubCategory subCategory)
@Transactional public SubCategory updateSubCategory(SubCategory subCategory)
public SubCategory getSubCategoryById(Long id)
public List<SubCategorySearch> getSubcategory(Long category, Long subcategory)
Copyright © 2015–2016 eGovernments Foundation. All rights reserved.