コード例 #1
0
 @RequestMapping(method = POST)
 public String save(@ModelAttribute("form") MeasuringSystem form, SessionStatus status) {
   measuringSystemService.save(form);
   status.setComplete();
   return "redirect:/admin/ms";
 }
コード例 #2
0
 @RequestMapping("/delete/{id}")
 public String delete(@PathVariable int id) {
   measuringSystemService.delete(id);
   return "redirect:/admin/ms";
 }
コード例 #3
0
 @RequestMapping("/update/{id}")
 public String update(@PathVariable int id, Model model) {
   model.addAttribute("form", measuringSystemService.findOne(id));
   model.addAttribute("measuringSystems", measuringSystemService.findAll());
   return "admin-measuringSystem";
 }
コード例 #4
0
 @RequestMapping
 public String show(Model model) {
   model.addAttribute("measuringSystems", measuringSystemService.findAll());
   return "admin-measuringSystem";
 }