news.java
来自「一个关于物流的管理系统」· Java 代码 · 共 96 行
JAVA
96 行
package com.shunshi.ssh.entity;
import java.util.Date;
/**
* News entity. @author MyEclipse Persistence Tools
*/
public class News implements java.io.Serializable {
// Fields
private Long id;
private String topic;
private String content;
private Date publishTime;
private Long userId;
private Integer state;
private Integer infoType;
// Constructors
/** default constructor */
public News() {
}
/** full constructor */
public News(String topic, String content, Date publishTime, Long userId,
Integer state, Integer infoType) {
this.topic = topic;
this.content = content;
this.publishTime = publishTime;
this.userId = userId;
this.state = state;
this.infoType = infoType;
}
// Property accessors
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public String getTopic() {
return this.topic;
}
public void setTopic(String topic) {
this.topic = topic;
}
public String getContent() {
return this.content;
}
public void setContent(String content) {
this.content = content;
}
public Date getPublishTime() {
return this.publishTime;
}
public void setPublishTime(Date publishTime) {
this.publishTime = publishTime;
}
public Long getUserId() {
return this.userId;
}
public void setUserId(Long userId) {
this.userId = userId;
}
public Integer getState() {
return this.state;
}
public void setState(Integer state) {
this.state = state;
}
public Integer getInfoType() {
return this.infoType;
}
public void setInfoType(Integer infoType) {
this.infoType = infoType;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?