abstractdepartment.java

来自「一个hibernate加spring学习的例子」· Java 代码 · 共 69 行

JAVA
69
字号
package com.htxx.demo.model;

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


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

public abstract class AbstractDepartment  implements java.io.Serializable {


    // Fields    

     private String departmentId;
     private String departmentName;
     private Set employees = new HashSet(0);


    // Constructors

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

    
    /** full constructor */
    public AbstractDepartment(String departmentName, Set employees) {
        this.departmentName = departmentName;
        this.employees = employees;
    }

   
    // Property accessors

    public String getDepartmentId() {
        return this.departmentId;
    }
    
    public void setDepartmentId(String departmentId) {
        this.departmentId = departmentId;
    }

    public String getDepartmentName() {
        return this.departmentName;
    }
    
    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
    }

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








}

⌨️ 快捷键说明

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