message.java

来自「网上购物系统」· Java 代码 · 共 126 行

JAVA
126
字号
package tarena.entity;

import java.text.SimpleDateFormat;
import java.util.Date;


/**
 * Message entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Message implements java.io.Serializable {

	// Fields

	private Integer id;
	private String sendname;
	private String receivename;
	private String title;
	private String content;	
	private Date sendtime;
	private Boolean isread;
	private Byte messtype;

	// Constructors

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

	/** full constructor */
	public Message(String sendname, String receivename, String title,
			String content, Date sendtime, Boolean isread,
			Byte messtype) {
		this.sendname = sendname;
		this.receivename = receivename;
		this.title = title;
		this.content = content;
		//this.savebox = savebox;
		this.sendtime = sendtime;
		this.isread = isread;
		this.messtype = messtype;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

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

	public String getSendname() {
		return this.sendname;
	}

	public void setSendname(String sendname) {
		this.sendname = sendname;
	}

	public String getReceivename() {
		return this.receivename;
	}

	public void setReceivename(String receivename) {
		this.receivename = receivename;
	}

	public String getTitle() {
		return this.title;
	}

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

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

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

	/*public Boolean getSavebox() {
		return this.savebox;
	}

	public void setSavebox(Boolean savebox) {
		this.savebox = savebox;
	}*/

	public Date getSendtime() {
		return this.sendtime;
	}
	
	public String getFormatsendtime(){
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-DD HH:mm:ss");
		return sdf.format(this.sendtime);
	}

	public void setSendtime(Date sendtime) {
		this.sendtime = sendtime;
	}
	
	
	public Boolean getIsread() {
		return this.isread;
	}

	public void setIsread(Boolean isread) {
		this.isread = isread;
	}

	public Byte getMesstype() {
		return this.messtype;
	}

	public void setMesstype(Byte messtype) {
		this.messtype = messtype;
	}

}

⌨️ 快捷键说明

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