📄 news.java
字号:
package com.xdf.news.bean;
import java.util.HashSet;
import java.util.Set;
/**
* News generated by MyEclipse - Hibernate Tools
*/
public class News implements java.io.Serializable {
// Fields
private Long newsid;
private Ntype ntype;
private String title;
private String author;
private String pdate;
private String keyword;
private Long times;
private String content;
private Set replies = new HashSet(0);
// Constructors
/** default constructor */
public News() {
}
/** minimal constructor */
public News(Ntype ntype, String title, String pdate, String keyword, Long times, String content) {
this.ntype = ntype;
this.title = title;
this.pdate = pdate;
this.keyword = keyword;
this.times = times;
this.content = content;
}
/** full constructor */
public News(Ntype ntype, String title, String author, String pdate, String keyword, Long times, String content, Set replies) {
this.ntype = ntype;
this.title = title;
this.author = author;
this.pdate = pdate;
this.keyword = keyword;
this.times = times;
this.content = content;
this.replies = replies;
}
// Property accessors
public Long getNewsid() {
return this.newsid;
}
public void setNewsid(Long newsid) {
this.newsid = newsid;
}
public Ntype getNtype() {
return this.ntype;
}
public void setNtype(Ntype ntype) {
this.ntype = ntype;
}
public String getTitle() {
return this.title;
}
public void setTitle(String title) {
this.title = title;
}
public String getAuthor() {
return this.author;
}
public void setAuthor(String author) {
this.author = author;
}
public String getPdate() {
return this.pdate;
}
public void setPdate(String pdate) {
this.pdate = pdate;
}
public String getKeyword() {
return this.keyword;
}
public void setKeyword(String keyword) {
this.keyword = keyword;
}
public Long getTimes() {
return this.times;
}
public void setTimes(Long times) {
this.times = times;
}
public String getContent() {
return this.content;
}
public void setContent(String content) {
this.content = content;
}
public Set getReplies() {
return this.replies;
}
public void setReplies(Set replies) {
this.replies = replies;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -