news.java
来自「网上结婚登记系统 Java语言编写 可直接运行」· Java 代码 · 共 77 行
JAVA
77 行
package task.domain;
import java.sql.Date;
/**
* News entity.
*
* @author MyEclipse Persistence Tools
*/
public class News implements java.io.Serializable {
// Fields
private Integer id;
private Users users;
private String title;
private String context;
private Date time;
// Constructors
/** default constructor */
public News() {
}
/** full constructor */
public News(Users users, String title, String context, Date time) {
this.users = users;
this.title = title;
this.context = context;
this.time = time;
}
// Property accessors
public Integer getId() {
return this.id;
}
public void setId(Integer id) {
this.id = id;
}
public Users getUsers() {
return this.users;
}
public void setUsers(Users users) {
this.users = users;
}
public String getTitle() {
return this.title;
}
public void setTitle(String title) {
this.title = title;
}
public String getContext() {
return this.context;
}
public void setContext(String context) {
this.context = context;
}
public Date getTime() {
return this.time;
}
public void setTime(Date time) {
this.time = time;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?