⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 topic.java

📁 新技术论坛系统 v1.0 前后台管理的初始用户名 : admin 密码 123456
💻 JAVA
字号:
package com.ntsky.bbs.domain;

import java.util.Date;
import java.util.Set;

public class Topic extends Entity{

	private int forumId;
	private int categoryId;
	private int mood;
	private String title;
	private int views;
	private int isTop;
	private int isVote;
	private Date dateCreated;
	//private int lastPostId;
	private String lastPostUser;
	private int replies;
	private int status;
	private int isDelete;
	private Long firstPostId;
	private String username;
	private Date lastPostTime;
	private String content;
		
	private Post firstPost;
	public void setFirstPost(Post firstPost){
		this.firstPost = firstPost;
	}
	public Post getFirstPost(){
		return firstPost;
	}
	
	private Post lastPost;
	public void setLastPost(Post lastPost){
		this.lastPost = lastPost;
	}
	public Post getLastPost(){
		return this.lastPost;
	}
	
	public void addPost(Post post) {
		post.setTopic(this);
	    posts.add(post);
	}
	
	private Set posts;	
	public Set getPosts() {
		return posts;
	}
	public void setPosts(Set posts) {
		this.posts = posts;
	}
	
	public String getLastPostUser() {
		return lastPostUser;
	}
	public void setLastPostUser(String lastPostUser) {
		this.lastPostUser = lastPostUser;
	}
	public int getCategoryId() {
		return categoryId;
	}
	public void setCategoryId(int categoryId) {
		this.categoryId = categoryId;
	}
	public int getForumId() {
		return forumId;
	}
	public void setForumId(int forumId) {
		this.forumId = forumId;
	}

	public Date getDateCreated() {
		return dateCreated;
	}
	public void setDateCreated(Date dateCreated) {
		this.dateCreated = dateCreated;
	}

	public int getIsDelete() {
		return isDelete;
	}
	public void setIsDelete(int isDelete) {
		this.isDelete = isDelete;
	}
	public int getIsTop() {
		return isTop;
	}
	public void setIsTop(int isTop) {
		this.isTop = isTop;
	}
	public int getIsVote() {
		return isVote;
	}
	public void setIsVote(int isVote) {
		this.isVote = isVote;
	}
	public int getMood() {
		return mood;
	}
	public void setMood(int mood) {
		this.mood = mood;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}	
	public int getReplies() {
		return replies;
	}
	public void setReplies(int replies) {
		this.replies = replies;
	}
	public int getViews() {
		return views;
	}
	public void setViews(int views) {
		this.views = views;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}

	public Date getLastPostTime() {
		return lastPostTime;
	}
	public void setLastPostTime(Date lastPostTime) {
		this.lastPostTime = lastPostTime;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Long getFirstPostId() {
		return firstPostId;
	}
	public void setFirstPostId(Long firstPostId) {
		this.firstPostId = firstPostId;
	}	
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -