⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 article.java

📁 J2EE电子商务系统开发从入门到精通---基于Struts和Hibernate技术实现
💻 JAVA
字号:
package model.bbs.hibernate;

import java.io.Serializable;
import java.util.Set;
import model.hr.hibernate.Employee;
import org.apache.commons.lang.builder.ToStringBuilder;


/** @author Hibernate CodeGenerator */
public class Article implements Serializable {

    /** identifier field */
    private Integer id;

    /** persistent field */
    private String name;

    /** persistent field */
    private String content;

    /** persistent field */
    private String presstime;

    /** persistent field */
    private model.bbs.hibernate.Topic topic;

    /** persistent field */
    private Employee employee;

    /** persistent field */
    private Set articleresponses;

    /** full constructor */
    public Article(String name, String content, String presstime, model.bbs.hibernate.Topic topic, Employee employee, Set articleresponses) {
        this.name = name;
        this.content = content;
        this.presstime = presstime;
        this.topic = topic;
        this.employee = employee;
        this.articleresponses = articleresponses;
    }

    /** default constructor */
    public Article() {
    }

    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    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 model.bbs.hibernate.Topic getTopic() {
        return this.topic;
    }

    public void setTopic(model.bbs.hibernate.Topic topic) {
        this.topic = topic;
    }

    public Employee getEmployee() {
        return this.employee;
    }

    public void setEmployee(Employee employee) {
        this.employee = employee;
    }

    public Set getArticleresponses() {
        return this.articleresponses;
    }

    public void setArticleresponses(Set articleresponses) {
        this.articleresponses = articleresponses;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("id", getId())
            .toString();
    }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -