history.java

来自「J2EE电子商务系统开发从入门到精通---基于Struts和Hibernate技」· Java 代码 · 共 62 行

JAVA
62
字号
package model.library.hibernate;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;
import model.hr.hibernate.*;

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

    /** identifier field */
    private Integer id;

    /** persistent field */
    private model.library.hibernate.Document document;

    /** persistent field */
    private model.hr.hibernate.Employee employee;

    /** full constructor */
    public History(model.library.hibernate.Document document, model.hr.hibernate.Employee employee) {
        this.document = document;
        this.employee = employee;
    }

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

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

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

    public model.library.hibernate.Document getDocument() {
        return this.document;
    }

    public void setDocument(model.library.hibernate.Document document) {
        this.document = document;
    }

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

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

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

}

⌨️ 快捷键说明

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