news.java
来自「学校新闻发布系统」· Java 代码 · 共 108 行
JAVA
108 行
package org.news.pojo;
import java.sql.Date;
/**
* News entity.
*
* @author MyEclipse Persistence Tools
*/
public class News implements java.io.Serializable {
// Fields
private Integer id;
private NewsType newsType;
private String title;
private String content;
private Date addTime;
private String author;
private String keyword;
private Integer typeId;
// Constructors
public Integer getTypeId() {
return typeId;
}
public void setTypeId(Integer typeId) {
this.typeId = typeId;
}
/** default constructor */
public News() {
}
/** full constructor */
public News(NewsType newsType, String title, String content, Date addTime,
String author, String keyword) {
this.newsType = newsType;
this.title = title;
this.content = content;
this.addTime = addTime;
this.author = author;
this.keyword = keyword;
}
// Property accessors
public Integer getId() {
return this.id;
}
public void setId(Integer id) {
this.id = id;
}
public NewsType getNewsType() {
return this.newsType;
}
public void setNewsType(NewsType newsType) {
this.newsType = newsType;
}
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 Date getAddTime() {
return this.addTime;
}
public void setAddTime(Date addTime) {
this.addTime = addTime;
}
public String getAuthor() {
return this.author;
}
public void setAuthor(String author) {
this.author = author;
}
public String getKeyword() {
return this.keyword;
}
public void setKeyword(String keyword) {
this.keyword = keyword;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?