code: public String save() {
      Integer codeScriptId = getInt("codeScript.id");
      CodeScript codeScript = null;
      if (null == codeScriptId) {
        codeScript = new CodeScript();
      } else {
        codeScript = (CodeScript) entityDao.get(CodeScript.class, codeScriptId);
      }
      codeScript.setUpdatedAt(new Date(System.currentTimeMillis()));
      Model.populate(codeScript, Params.sub("codeScript"));
      entityDao.saveOrUpdate(codeScript);
      return redirect("search", "info.save.success");
    }
docs: 保存