📄 news.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -