dept.java

来自「机房运营维护系统 java+oracle9i 使用struts 分用户权限」· Java 代码 · 共 123 行

JAVA
123
字号
package ms.hibernate;

import java.util.HashSet;
import java.util.Set;


/**
 * Dept generated by MyEclipse - Hibernate Tools
 */

public class Dept  implements java.io.Serializable {


    // Fields    

     private Long deptid;
     private Emp emp;
     private String dname;
     private String tel;
     private String fax;
     private String memo;
     private Set emps = new HashSet(0);
     private Set rooms = new HashSet(0);


    // Constructors

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

	/** minimal constructor */
    public Dept(String dname) {
        this.dname = dname;
    }
    
    /** full constructor */
    public Dept(Emp emp, String dname, String tel, String fax, String memo, Set emps, Set rooms) {
        this.emp = emp;
        this.dname = dname;
        this.tel = tel;
        this.fax = fax;
        this.memo = memo;
        this.emps = emps;
        this.rooms = rooms;
    }

   
    // Property accessors

    public Long getDeptid() {
        return this.deptid;
    }
    
    public void setDeptid(Long deptid) {
        this.deptid = deptid;
    }

    public Emp getEmp() {
        return this.emp;
    }
    
    public void setEmp(Emp emp) {
        this.emp = emp;
    }

    public String getDname() {
        return this.dname;
    }
    
    public void setDname(String dname) {
        this.dname = dname;
    }

    public String getTel() {
        return this.tel;
    }
    
    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getFax() {
        return this.fax;
    }
    
    public void setFax(String fax) {
        this.fax = fax;
    }

    public String getMemo() {
        return this.memo;
    }
    
    public void setMemo(String memo) {
        this.memo = memo;
    }

    public Set getEmps() {
        return this.emps;
    }
    
    public void setEmps(Set emps) {
        this.emps = emps;
    }

    public Set getRooms() {
        return this.rooms;
    }
    
    public void setRooms(Set rooms) {
        this.rooms = rooms;
    }
   








}

⌨️ 快捷键说明

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