标签:public java port 用户 内容 package ring int TE
留言本类
package com.hanqi.model;
import java.util.Date;
//留言本对象
public class Message {
private Integer id;//留言ID
private String content;//留言内容
private Date createtime;//留言时间
private String username;//留言人用户名
public Message(Integer id, String content, Date createtime, String username) {
super();
this.id = id;
this.content = content;
this.createtime = createtime;
this.username = username;
}
public Message() {
super();
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public Date getCreatetime() {
return createtime;
}
public void setCreatetime(Date createtime) {
this.createtime = createtime;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
}
用户类
package com.hanqi.model; import java.util.Date; //用户对象 public class Users { private Integer id ;//用户ID private String username;//用户名 private String password;//用户密码 private String realname;//用户真实姓名 private Date createtime;//用户注册时间 private Integer mark;//用户有效标记 public Users(Integer id, String username, String password, String realname, Date createtime, Integer mark) { super(); this.id = id; this.username = username; this.password = password; this.realname = realname; this.createtime = createtime; this.mark = mark; } public Users() { super(); } public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public String getRealname() { return realname; } public void setRealname(String realname) { this.realname = realname; } public Date getCreatetime() { return createtime; } public void setCreatetime(Date createtime) { this.createtime = createtime; } public Integer getMark() { return mark; } public void setMark(Integer mark) { this.mark = mark; } @Override public String toString() { return username; } }
标签:public java port 用户 内容 package ring int TE
原文地址:https://www.cnblogs.com/wyc1991/p/9131441.html