📄 news.java
字号:
package com.ata.wx.java01b.dao;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
/**
* News generated by MyEclipse Persistence Tools
*/
public class News implements java.io.Serializable {
// Fields
private String newsid;
private User user;
private Newstype newstype;
private String title;
private String content;
private Date time;
private Set<Comment> comments = new HashSet<Comment>(0);
// Constructors
/** default constructor */
public News() {
}
/** minimal constructor */
public News(User user, Newstype newstype, String title, String content,
Date time) {
this.user = user;
this.newstype = newstype;
this.title = title;
this.content = content;
this.time = time;
}
/** full constructor */
public News(User user, Newstype newstype, String title, String content,
Date time, Set<Comment> comments) {
this.user = user;
this.newstype = newstype;
this.title = title;
this.content = content;
this.time = time;
this.comments = comments;
}
// Property accessors
public String getNewsid() {
return this.newsid;
}
public void setNewsid(String newsid) {
this.newsid = newsid;
}
public User getUser() {
return this.user;
}
public void setUser(User user) {
this.user = user;
}
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 getTime() {
return this.time;
}
public void setTime(Date time) {
this.time = time;
}
public Set<Comment> getComments() {
return this.comments;
}
public void setComments(Set<Comment> comments) {
this.comments = comments;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -