ssh(Spring+Spring mvc+hibernate)——Emp.java

package org.entity;

import java.sql.Timestamp;
import java.util.Date;

/**
 * Emp entity. @author MyEclipse Persistence Tools
 */

public class Emp implements java.io.Serializable {

    // Fields

    private Integer eid;
    private Dept dept;
    private String ename;
    private Integer eage;
    private Date edate;
    private int did;

    // Constructors

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

    /** minimal constructor */
    public Emp(Integer eid) {
        this.eid = eid;
    }

    /** full constructor */
    public Emp(Integer eid, Dept dept, String ename, Integer eage,
            Timestamp edate) {
        this.eid = eid;
        this.dept = dept;
        this.ename = ename;
        this.eage = eage;
        this.edate = edate;
    }

    // Property accessors

    public Integer getEid() {
        return this.eid;
    }

    public void setEid(Integer eid) {
        this.eid = eid;
    }

    public Dept getDept() {
        return this.dept;
    }

    public void setDept(Dept dept) {
        this.dept = dept;
    }

    public String getEname() {
        return this.ename;
    }

    public void setEname(String ename) {
        this.ename = ename;
    }

    public Integer getEage() {
        return this.eage;
    }

    public void setEage(Integer eage) {
        this.eage = eage;
    }

    public int getDid() {
        return did;
    }

    public void setDid(int did) {
        this.did = did;
    }

    public Date getEdate() {
        return edate;
    }

    public void setEdate(Date edate) {
        this.edate = edate;
    }



}
posted @ 2017-12-29 14:06  穆雄雄  阅读(88)  评论(0编辑  收藏  举报