Esempio n. 1
0
 @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/";
 }
Esempio n. 2
0
 @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";
 }
Esempio n. 3
0
 @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/";
 }
Esempio n. 4
0
  @Execute(validator = false)
  public String index() {
    empItems = empService.findAll();

    return "list.jsp";
  }