/* * Copyright 2009-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.ibatis.domain.blog; import java.util.Date; import java.util.List; public class Post { private int id; private Author author; private Blog blog; private Date createdOn; private Section section; private String subject; private String body; private List<Comment> comments; private List<Tag> tags; public int getId() { return id; } public void setId(int id) { this.id = id; } public Blog getBlog() { return blog; } public void setBlog(Blog blog) { this.blog = blog; } public Author getAuthor() { return author; } public void setAuthor(Author author) { this.author = author; } public Date getCreatedOn() { return createdOn; } public void setCreatedOn(Date createdOn) { this.createdOn = createdOn; } public Section getSection() { return section; } public void setSection(Section section) { this.section = section; } public String getSubject() { return subject; } public void setSubject(String subject) { this.subject = subject; } public String getBody() { return body; } public void setBody(String body) { this.body = body; } public List<Comment> getComments() { return comments; } public void setComments(List<Comment> comments) { this.comments = comments; } public List<Tag> getTags() { return tags; } public void setTags(List<Tag> tags) { this.tags = tags; } public String toString() { return "Post: " + id + " : " + subject + " : " + body + " : " + section + " : " + createdOn + " (" + author + ") (" + blog + ")"; } }