1 package org.javabb.vo; 2 3 import java.util.Date ; 4 5 6 public class PostText extends Post { 7 8 private static final long serialVersionUID = 1L; 9 public String postBody; 10 11 14 public PostText(Long topicId, Integer pageLastPost, Long postId, String titleTopic, 15 Long forumId, String forumName, Date postDate, Long userId, String userName, 16 Integer replies, Integer views, String postBody){ 17 18 Topic topic = new Topic(); 19 topic.setId(topicId); 20 topic.setPageLastPost(pageLastPost); 21 topic.setTitleTopic(titleTopic); 22 topic.setRespostas(replies); 23 topic.setVisualizacoes(views); 24 25 Forum forum = new Forum(); 26 forum.setId(forumId); 27 forum.setNome(forumName); 28 29 topic.setForum(forum); 30 this.setTopic(topic); 31 32 User user = new User(); 33 user.setIdUser(userId); 34 user.setUser(userName); 35 this.setUser(user); 36 37 this.setIdPost(postId); 38 this.setPostDate(postDate); 39 this.setPostBody(postBody); 40 41 } 42 43 44 public PostText(){ 45 46 } 47 48 51 public String getPostBody() { 52 return postBody; 53 } 54 57 public void setPostBody(String postBody) { 58 this.postBody = postBody; 59 } 60 } 61 | Popular Tags |