📄 post.java
字号:
package tarena.entity;
import java.util.Date;
/**
* Post entity.
*
* @author MyEclipse Persistence Tools
*/
@SuppressWarnings("serial")
public class Post implements java.io.Serializable {
// Fields
private Integer id;
private Topic topic;
private User user;
private String title;
private Integer transactionpoint;
private Integer readaccess;
private Integer icon;
private String content;
private Boolean forbideurl;
private Boolean forbidesmile;
private Boolean forbidegerweb;
private Boolean usesign;
private Integer floor;
private Date sendtime;
private Date lastmodified;
// Constructors
/** default constructor */
public Post() {
}
/** minimal constructor */
public Post(Topic topic, User user, String title, String content,
Integer floor, Date sendtime) {
this.topic = topic;
this.user = user;
this.title = title;
this.content = content;
this.floor = floor;
this.sendtime = sendtime;
}
/** full constructor */
public Post(Topic topic, User user, String title, Integer transactionpoint,
Integer readaccess, Integer icon, String content, Boolean forbideurl,
Boolean forbidesmile, Boolean forbidegerweb, Boolean usesign, Integer floor,
Date sendtime, Date lastmodified) {
this.topic = topic;
this.user = user;
this.title = title;
this.transactionpoint = transactionpoint;
this.readaccess = readaccess;
this.icon = icon;
this.content = content;
this.forbideurl = forbideurl;
this.forbidesmile = forbidesmile;
this.forbidegerweb = forbidegerweb;
this.usesign = usesign;
this.floor = floor;
this.sendtime = sendtime;
this.lastmodified = lastmodified;
}
// Property accessors
public Integer getId() {
return this.id;
}
public void setId(Integer id) {
this.id = id;
}
public Topic getTopic() {
return this.topic;
}
public void setTopic(Topic topic) {
this.topic = topic;
}
public User getUser() {
return this.user;
}
public void setUser(User user) {
this.user = user;
}
public String getTitle() {
return this.title;
}
public void setTitle(String title) {
this.title = title;
}
public Integer getTransactionpoint() {
return this.transactionpoint;
}
public void setTransactionpoint(Integer transactionpoint) {
this.transactionpoint = transactionpoint;
}
public Integer getReadaccess() {
return this.readaccess;
}
public void setReadaccess(Integer readaccess) {
this.readaccess = readaccess;
}
public Integer getIcon() {
return this.icon;
}
public void setIcon(Integer icon) {
this.icon = icon;
}
public String getContent() {
return this.content;
}
public void setContent(String content) {
this.content = content;
}
public Boolean getForbideurl() {
return this.forbideurl;
}
public void setForbideurl(Boolean forbideurl) {
this.forbideurl = forbideurl;
}
public Boolean getForbidesmile() {
return this.forbidesmile;
}
public void setForbidesmile(Boolean forbidesmile) {
this.forbidesmile = forbidesmile;
}
public Boolean getForbidegerweb() {
return this.forbidegerweb;
}
public void setForbidegerweb(Boolean forbidegerweb) {
this.forbidegerweb = forbidegerweb;
}
public Boolean getUsesign() {
return this.usesign;
}
public void setUsesign(Boolean usesign) {
this.usesign = usesign;
}
public Integer getFloor() {
return this.floor;
}
public void setFloor(Integer floor) {
this.floor = floor;
}
public Date getSendtime() {
return this.sendtime;
}
public void setSendtime(Date sendtime) {
this.sendtime = sendtime;
}
public Date getLastmodified() {
return this.lastmodified;
}
public void setLastmodified(Date lastmodified) {
this.lastmodified = lastmodified;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -