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

📄 message.java

📁 J2EE 用 hibernate 和javabean 登陆验证程序
💻 JAVA
字号:
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * @author Chao Wu
 * 
 * Description:
 * <p>
 * 
 * Copyright:
 * <p>
 */
public class Message {

	private Date time;

	private String content;
	
	private String author;
	
	private String title;

	private int id;
	
	private Set comment = new HashSet();
		

	public String getCommentCount() {
		return String.valueOf(comment.size());
	}


	

	public String getTimeString() {
		return time.toString();
	}

	
	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}


	public Set getComment() {
		return comment;
	}


	public void setComment(Set comment) {
		this.comment = comment;
	}

	
}

⌨️ 快捷键说明

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