department.java

来自「这是一段用struts和hibernate做的单位数据库管理程序」· Java 代码 · 共 99 行

JAVA
99
字号
package pp;

import java.io.Serializable;import java.util.Set;import org.apache.commons.lang.builder.ToStringBuilder;

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

    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/** identifier field */
    private String id;

    /** nullable persistent field */
    private String description;

    /** nullable persistent field */
    private String name;

    /** nullable persistent field */
    private pp.Employee employee;

    /** persistent field */
    private Set employees;

    /** full constructor */
    public Department(String id, String description, String name, pp.Employee employee, Set employees) {
        this.id = id;
        this.description = description;
        this.name = name;
        this.employee = employee;
        this.employees = employees;
    }

    /** default constructor */
    public Department() {
    }
    public Department(String id) {
    	this.id=id;
    }
    /** minimal constructor */
    public Department(String id, Set employees) {
        this.id = id;
        this.employees = employees;
    }

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

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

    public String getDescription() {
        return this.description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

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

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

    public Set getEmployees() {
        return this.employees;
    }

    public void setEmployees(Set employees) {
        this.employees = employees;
    }

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

}

⌨️ 快捷键说明

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