コード例 #1
0
 @Override
 public List<Category> list() {
   List<Category> result = super.list();
   for (Category category : result) {
     category.setResourceCount(category.getResources().size());
   }
   return result;
 }
コード例 #2
0
 @Override
 public Category get(Object id) {
   Category result = super.get(id);
   result.setResourceCount(result.getResources().size());
   return result;
 }