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