Examples of BlogPostComment


Examples of com.eniac.blog.dao.domain.BlogPostComment

  public void addComment(final int postId, final String comment) {
    final Session session = factory.openSession();
    try{
      final BlogPost post = (BlogPost) session.load(BlogPost.class, postId);
      final BlogPostComment postComment = post.addComment(comment);
      session.save(postComment);
    } finally {
      session.close();
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.