comment.java

来自「struts hibernate spring实现新闻发布系统含说明文档」· Java 代码 · 共 75 行

JAVA
75
字号
package com.ata.wx.java01b.dao;

import java.util.Date;

/**
 * Comment generated by MyEclipse Persistence Tools
 */

public class Comment implements java.io.Serializable {

	// Fields

	private String commentid;
	private User user;
	private News news;
	private String content;
	private Date time;

	// Constructors

	/** default constructor */
	public Comment() {
	}

	/** full constructor */
	public Comment(User user, News news, String content, Date time) {
		this.user = user;
		this.news = news;
		this.content = content;
		this.time = time;
	}

	// Property accessors

	public String getCommentid() {
		return this.commentid;
	}

	public void setCommentid(String commentid) {
		this.commentid = commentid;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public News getNews() {
		return this.news;
	}

	public void setNews(News news) {
		this.news = news;
	}

	public String getContent() {
		return this.content;
	}

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

	public Date getTime() {
		return this.time;
	}

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

}

⌨️ 快捷键说明

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