Package com.freewebsys.blog.pojo

Examples of com.freewebsys.blog.pojo.Comment


   */
  @Transactional
  public void deleteCommentById(Long id) throws Exception {
    log.info("deleteCommentById:" + id);
    try {
      Comment comment = (Comment) baseDao.findById(Comment.class, id);
      baseDao.delete(comment);
    } catch (Exception e) {
      log.info("Comment删除异常");
      e.printStackTrace();
    }
View Full Code Here


    // 循环.
    for (int i = 0; i < commentList.size(); i++) {
      // 增加首页分页.
      int loopPage = (int) Math.floor(i / pageSize);
      System.out.println("loopPage:" + loopPage);
      Comment comment = commentList.get(i);
      commentListTmp[loopPage].add(comment);
    }
    Template temp = null;
    try {
      temp = FreemakerTemplateEngine
View Full Code Here

  public String addComment(HttpServletRequest request,
      HttpServletResponse response,
      @RequestParam(value = "id", required = false) Long id,
      ModelMap model) throws Exception {
    if (id != null) {
      Comment comment = commentService.findCommentById(id);
      model.addAttribute("commentAttribute", comment);
    } else {
      model.addAttribute("commentAttribute", new Comment());
    }
    return "/admin/comment/commentForm";
  }
View Full Code Here

TOP

Related Classes of com.freewebsys.blog.pojo.Comment

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.