article.java
来自「j2ee项目应用 使用struts hibernate构建的轻量级j2ee项目」· Java 代码 · 共 132 行
JAVA
132 行
package com.emis.model.bbs.hibernate;
import java.util.HashSet;
import java.util.Set;
import com.emis.model.hr.hibernate.Employee;
/**
* Article generated by MyEclipse - Hibernate Tools
*/
public class Article implements java.io.Serializable {
// Fields
private Integer id;
private Topic topic;
private Employee employee;
private String name;
private String content;
private String presstime;
private String remarks;
private Set articleresponses = new HashSet(0);
// Constructors
/** default constructor */
public Article() {
}
/** minimal constructor */
public Article(Integer id, Topic topic, Employee employee, String name, String content, String presstime, String remarks) {
this.id = id;
this.topic = topic;
this.employee = employee;
this.name = name;
this.content = content;
this.presstime = presstime;
this.remarks = remarks;
}
/** full constructor */
public Article(Integer id, Topic topic, Employee employee, String name, String content, String presstime, String remarks, Set articleresponses) {
this.id = id;
this.topic = topic;
this.employee = employee;
this.name = name;
this.content = content;
this.presstime = presstime;
this.remarks = remarks;
this.articleresponses = articleresponses;
}
// Property accessors
public Integer getId() {
return this.id;
}
public void setId(Integer id) {
this.id = id;
}
public Topic getTopic() {
return this.topic;
}
public void setTopic(Topic topic) {
this.topic = topic;
}
public Employee getEmployee() {
return this.employee;
}
public void setEmployee(Employee employee) {
this.employee = employee;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public String getContent() {
return this.content;
}
public void setContent(String content) {
this.content = content;
}
public String getPresstime() {
return this.presstime;
}
public void setPresstime(String presstime) {
this.presstime = presstime;
}
public String getRemarks() {
return this.remarks;
}
public void setRemarks(String remarks) {
this.remarks = remarks;
}
public Set getArticleresponses() {
return this.articleresponses;
}
public void setArticleresponses(Set articleresponses) {
this.articleresponses = articleresponses;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?