package com.njcn.pojo.configuration;

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

/**
 * 生成报告项基础数据
 */
@Table(name = "PQS_RPTDATA")
public class RptData implements Serializable {
    @Id
    @Column(name = "RD_INDEX")
    private String rdIndex;

    @Column(name = "RD_NAME")
    private String rdName;

    @Column(name = "RD_DESCRIBE")
    private String rdDescribe;

    @Column(name = "NODE")
    private Integer node;

    @Column(name = "PARENTNODE")
    private Integer parentnode;

    @Column(name = "SORT")
    private Integer sort;

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

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

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

    @Column(name = "SYSTYPE")
    private String sysType;

    @Column(name = "PARENTGUID")
    private String parentGUID;

    @Column(name = "CREATETIME")
    private Date createTime;

    @Column(name = "DATATYPE")
    private Integer dataType;

    @Transient
    private long id;

    @Transient
    private long pId;

    public long getId() {
        return id;
    }

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

    public long getpId() {
        return pId;
    }

    public void setpId(long pId) {
        this.pId = pId;
    }

    public String getParentGUID() {
        return parentGUID;
    }

    public void setParentGUID(String parentGUID) {
        this.parentGUID = parentGUID;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getRdIndex() {
        return rdIndex;
    }

    public void setRdIndex(String rdIndex) {
        this.rdIndex = rdIndex;
    }

    public String getRdName() {
        return rdName;
    }

    public void setRdName(String rdName) {
        this.rdName = rdName;
    }

    public String getRdDescribe() {
        return rdDescribe;
    }

    public void setRdDescribe(String rdDescribe) {
        this.rdDescribe = rdDescribe;
    }

    public Integer getNode() {
        return node;
    }

    public void setNode(Integer node) {
        this.node = node;
    }

    public Integer getParentnode() {
        return parentnode;
    }

    public void setParentnode(Integer parentnode) {
        this.parentnode = parentnode;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getState() {
        return state;
    }

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

    public String getUserIndex() {
        return userIndex;
    }

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

    public Date getUpdateTime() {
        return updateTime;
    }

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

    public String getSysType() {
        return sysType;
    }

    public void setSysType(String sysType) {
        this.sysType = sysType;
    }

    public Integer getDataType() {
        return dataType;
    }

    public void setDataType(Integer dataType) {
        this.dataType = dataType;
    }

    @Override
    public String toString() {
        return "RptData{" +
            "rdIndex='" + rdIndex + '\'' +
            ", rdName='" + rdName + '\'' +
            ", rdDescribe='" + rdDescribe + '\'' +
            ", node=" + node +
            ", parentnode=" + parentnode +
            ", sort=" + sort +
            ", state=" + state +
            ", userIndex='" + userIndex + '\'' +
            ", updateTime=" + updateTime +
            ", sysType='" + sysType + '\'' +
            ", parentGUID='" + parentGUID + '\'' +
            ", createTime=" + createTime +
            ", dataType=" + dataType +
            ", id=" + id +
            ", pId=" + pId +
            '}';
    }
}
