Example #1
0
 public String addDish() {
   dish.setCategory(categoryService.find(categoryId));
   dishService.save(dish);
   return "administerMenuCategories";
 }
Example #2
0
 public String addCategory() {
   categoryService.save(category);
   return "administerMenuCategories";
 }
Example #3
0
  public String refreshDishesByCategoryList(String categoryId) {

    category = categoryService.find(Integer.parseInt(categoryId));
    dishes = dishService.findByCategory(category);
    return "administerMenu";
  }
Example #4
0
 public String editCategory(String categoryId) {
   category = categoryService.find(Integer.parseInt(categoryId));
   return "createDishCategory";
 }
Example #5
0
 public void refreshCategoryList() {
   categories = categoryService.findAll();
   System.out.println(Arrays.toString(categories.toArray()));
 }