package com.njcn.pojo.configuration;

import com.njcn.sso.pojo.user.User;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;

/**
 * 字典数据表。
 */
@Table(name = "PQS_DICDATA")
public class DicData {

    @Id
    @Column(name = "DIC_INDEX")
    private String dicIndex;

    @Column(name = "DIC_NAME")
    private String dicName;

    @Column(name = "DIC_TYPE")
    private String dicType;

    @Column(name = "DIC_NUMBER")
    private Integer dicNumber;

    @Column(name = "UPDATETIME")
    private Date updateTime;

    @Column(name = "USER_INDEX")
    private String userIndex;

    //事件等级
    @Column(name = "DIC_LEAVE")
    private Integer dicLeave;

    @Column(name = "STATE")
    private Integer state;
    @Column(name = "TRIPHASE")
    private Integer triphase;

    @Column(name = "BACK_UP")
    private String backUp;

    @Transient
    private User uID;

    public User getuID() {
        return uID;
    }

    @Transient
    private DicType dt;

    public DicType getDt() {
        return dt;
    }

    public void setDt(DicType dt) {
        this.dt = dt;
    }


    public void setuID(User uID) {
        this.uID = uID;
    }

    public String getDicIndex() {
        return dicIndex;
    }

    public void setDicIndex(String dicIndex) {
        this.dicIndex = dicIndex;
    }

    public String getDicName() {
        return dicName;
    }

    public void setDicName(String dicName) {
        this.dicName = dicName;
    }

    public String getDicType() {
        return dicType;
    }

    public void setDicType(String dicType) {
        this.dicType = dicType;
    }

    public Integer getDicNumber() {
        return dicNumber;
    }

    public void setDicNumber(Integer dicNumber) {
        this.dicNumber = dicNumber;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getUserIndex() {
        return userIndex;
    }

    public void setUserIndex(String userIndex) {
        this.userIndex = userIndex;
    }

    public Integer getDicLeave() {
        return dicLeave;
    }

    public void setDicLeave(Integer dicLeave) {
        this.dicLeave = dicLeave;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getTriphase() {
        return triphase;
    }

    public void setTriphase(Integer triphase) {
        this.triphase = triphase;
    }

    public String getBackUp() {
        return backUp;
    }

    public void setBackUp(String backUp) {
        this.backUp = backUp;
    }

    @Override
    public String toString() {
        return "DicData [dicIndex=" + dicIndex + ", dicName=" + dicName + ", dicType=" + dicType + ", dicNumber="
            + dicNumber + ", updateTime=" + updateTime + ", userIndex=" + userIndex + ", dicLeave=" + dicLeave
            + ", state=" + state + ", triphase=" + triphase + ", uID=" + uID + ", dt=" + dt + "]";
    }


}
