コード例 #1
0
  public String modify() {
    Paper paper = paperManager.getById(id);
    paper.setPaperName(paperName);
    paper.setPaperAttribute(paperAttribute);
    paper.setPaperAuthor(paperAuthor);
    paper.setNote(note);

    paperManager.modify(paper);

    return SUCCESS;
  }
コード例 #2
0
  public String addPaper() {

    Paper paper = new Paper();
    paper.setPaperName(paperName);
    paper.setPaperAttribute(paperAttribute);
    paper.setPaperAuthor(paperAuthor);
    paper.setNote(note);

    paperManager.save(paper);

    return SUCCESS;
  }