基于struts+hibernate的电子商务网站。可运行。数据库mysql

源代码在线查看: message.java

软件大小: 15307 K
上传用户: ydyzd_2008
关键词: hibernate struts mysql 电子商务
下载地址: 免注册下载 普通下载 VIP

相关代码

				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;
					}
				
				}			

相关资源