package com.casic.PgInterface.devTable.domain;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * Created by yxw on 2018/9/3.
 */
@Entity
@Table(name = "PG_EQUIPMENT")
@SequenceGenerator(name = "SEQ_PG_EQUIPMENT_ID", sequenceName = "SEQ_PG_EQUIPMENT_ID", allocationSize = 1, initialValue = 1)
public class PgEquipment implements Serializable {
    private static final long serialVersionUID = 1L;

    private long id;
    private String eqName;//名称
    private String eqCode;//编号
    private String eqType;//类型
    private String ownerUnit;//权属单位
    private Date enterDate;//入库时间
    private String curUser;//当前使用人
    private int active;//状态位

    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_PG_EQUIPMENT_ID")
    public long getId() {
        return id;
    }

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

    @Column(name = "EQ_NAME")
    public String getEqName() {
        return eqName;
    }

    public void setEqName(String eqName) {
        this.eqName = eqName;
    }

    @Column(name = "EQ_CODE")
    public String getEqCode() {
        return eqCode;
    }

    public void setEqCode(String eqCode) {
        this.eqCode = eqCode;
    }

    @Column(name = "EQ_TYPE")
    public String getEqType() {
        return eqType;
    }

    public void setEqType(String eqType) {
        this.eqType = eqType;
    }

    @Column(name = "OWNER_UNIT")
    public String getOwnerUnit() {
        return ownerUnit;
    }

    public void setOwnerUnit(String ownerUnit) {
        this.ownerUnit = ownerUnit;
    }

    @Column(name = "ENTER_DATE")
    public Date getEnterDate() {
        return enterDate;
    }

    public void setEnterDate(Date enterDate) {
        this.enterDate = enterDate;
    }

    @Column(name = "CUR_USER")
    public String getCurUser() {
        return curUser;
    }

    public void setCurUser(String curUser) {
        this.curUser = curUser;
    }

    @Column(name = "ACTIVE")
    public int getActive() {
        return active;
    }

    public void setActive(int active) {
        this.active = active;
    }

}
