📄 news.java
字号:
package edu.xjusoft.hibernate.ORM;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
/**
* News entity.
*
* @author MyEclipse Persistence Tools
*/
public class News implements java.io.Serializable {
// Fields
private Long newsId;
private Users users;
private Newstype newstype;
private String newstitle;
private String newscontent;
private Date newstime;
private Set newscomments = new HashSet(0);
// Constructors
/** default constructor */
public News() {
}
/** minimal constructor */
public News(Users users, Newstype newstype, String newstitle,
String newscontent, Date newstime) {
this.users = users;
this.newstype = newstype;
this.newstitle = newstitle;
this.newscontent = newscontent;
this.newstime = newstime;
}
/** full constructor */
public News(Users users, Newstype newstype, String newstitle,
String newscontent, Date newstime, Set newscomments) {
this.users = users;
this.newstype = newstype;
this.newstitle = newstitle;
this.newscontent = newscontent;
this.newstime = newstime;
this.newscomments = newscomments;
}
// Property accessors
public Long getNewsId() {
return this.newsId;
}
public void setNewsId(Long newsId) {
this.newsId = newsId;
}
public Users getUsers() {
return this.users;
}
public void setUsers(Users users) {
this.users = users;
}
public Newstype getNewstype() {
return this.newstype;
}
public void setNewstype(Newstype newstype) {
this.newstype = newstype;
}
public String getNewstitle() {
return this.newstitle;
}
public void setNewstitle(String newstitle) {
this.newstitle = newstitle;
}
public String getNewscontent() {
return this.newscontent;
}
public void setNewscontent(String newscontent) {
this.newscontent = newscontent;
}
public Date getNewstime() {
return this.newstime;
}
public void setNewstime(Date newstime) {
this.newstime = newstime;
}
public Set getNewscomments() {
return this.newscomments;
}
public void setNewscomments(Set newscomments) {
this.newscomments = newscomments;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -