Package com.freewebsys.sns.pojo

Examples of com.freewebsys.sns.pojo.Comment


   * 保存action.
   */
  public void saveComment() throws Exception {
    System.out.println("saveComment," + appType + "," + appId);
    try {
      Comment comment = new Comment();
      comment.setAppType(appType);
      comment.setAppId(appId);
      comment.setParentId(parentId);
      comment.setCreateTime(new Date());
      comment.setComment(commentContent);
      commentService.saveComment(comment);
    } catch (Exception e) {
      writeToPage("0");// 失败
    }
    writeToPage("1");// 成功
View Full Code Here


   */
  @Override
  @Transactional
  public void deleteCommentById(Integer id) throws CommentException {
    try{
      Comment comment = (Comment) baseDao.findById(Comment.class, id);
      baseDao.delete(comment);
    } catch (Exception e) {
      throw new CommentException("Comment删除异常");
    }
  }
View Full Code Here

TOP

Related Classes of com.freewebsys.sns.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.