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

📄 department.java

📁 这是一段用struts和hibernate做的单位数据库管理程序
💻 JAVA
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -