コード例 #1
0
 public String editDish(String dishId) {
   dish = dishService.findById(Integer.parseInt(dishId));
   return "createDish";
 }
コード例 #2
0
 public String addDish() {
   dish.setCategory(categoryService.find(categoryId));
   dishService.save(dish);
   return "administerMenuCategories";
 }
コード例 #3
0
  public String refreshDishesByCategoryList(String categoryId) {

    category = categoryService.find(Integer.parseInt(categoryId));
    dishes = dishService.findByCategory(category);
    return "administerMenu";
  }