@Execute(input = "edit.jsp", redirect = true) public String update() { Emp entity = Beans.createAndCopy(Emp.class, empForm).dateConverter("yyyy-MM-dd").execute(); empService.update(entity); return "/emp/"; }
@Execute(validator = false, urlPattern = "edit/{id}") public String edit() { Emp entity = empService.findById(Long.valueOf(empForm.id)); Beans.copy(entity, empForm).dateConverter("yyyy-MM-dd").execute(); return "edit.jsp"; }
@Execute(validator = false, urlPattern = "delete/{id}/{versionNo}", redirect = true) public String delete() { Emp entity = Beans.createAndCopy(Emp.class, empForm).dateConverter("yyyy-MM-dd").execute(); empService.delete(entity); return "/emp/"; }
@Execute(validator = false) public String index() { empItems = empService.findAll(); return "list.jsp"; }