コード例 #1
0
 @Override
 @Cacheable(value = "caching", key = "#root.targetClass.name + #root.methodName")
 public List<ArticleCategory> getArticleCategoryTreeList() {
   logger.debug(CommonUtils.displayMessage(" called", null));
   List<ArticleCategory> allArticleCategoryList = this.getAll();
   return recursivArticleCategoryTreeList(allArticleCategoryList, null, null);
 }
コード例 #2
0
 @Override
 @Cacheable(value = "caching", key = "#root.targetClass.name + #root.methodName")
 public List<ArticleCategory> getRootArticleCategoryList() {
   logger.debug(CommonUtils.displayMessage(" called", null));
   List<ArticleCategory> rootArticleCategoryList = articleCategoryDao.getRootArticleCategoryList();
   if (rootArticleCategoryList != null) {
     for (ArticleCategory rootArticleCategory : rootArticleCategoryList) {
       Hibernate.initialize(rootArticleCategory);
     }
   }
   return rootArticleCategoryList;
 }