package com.pqs9900.pojo.DataInfo;

import com.njcn.pojo.configuration.DicData;

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

/** @Author denghuajun
 * @Description //TODO 服务器表
 * @Date  2019/3/15 10:48
 **/
@Table(name = "PQS_SERVER")
public class Server {
    @Id
    @Column(name = "SEV_INDEX")
    private String sevIndex;//服务器guid
    @Column(name = "NAME")
    private String name;//服务器名称
    @Column(name = "TYPE")
    private String type;//(关联表pqs_dicdata)前置类型
    @Column(name = "VERSION")
    private String version;//(关联表pqs_dicdata)系统版本
    @Column(name = "HARDWARE")
    private String hardware;//硬件信息
    @Column(name = "USERNAME")
    private String userName;//用户名
    @Column(name = "PASSWORD")
    private String password;//密码
    @Column(name = "IP")
    private String ip;//ip地址
    @Column(name = "UPDATETIME")
    private Date updateTime;//更新时间
    @Column(name = "USER_INDEX")
    private String userIndex;//（关联表PQS_User）处理的用户Guid,可为空

    @Transient
    private List<DicData> getType = new ArrayList<>();

    @Transient
    private List<DicData> getSystemType = new ArrayList<>();

    public List<DicData> getGetType() {
        return getType;
    }

    public void setGetType(List<DicData> getType) {
        this.getType = getType;
    }

    public List<DicData> getGetSystemType() {
        return getSystemType;
    }

    public void setGetSystemType(List<DicData> getSystemType) {
        this.getSystemType = getSystemType;
    }

    public String getSevIndex() {
        return sevIndex;
    }

    public void setSevIndex(String sevIndex) {
        this.sevIndex = sevIndex;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getHardware() {
        return hardware;
    }

    public void setHardware(String hardware) {
        this.hardware = hardware;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    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;
    }

    @Override
    public String toString() {
        return "Server{" +
                "sevIndex='" + sevIndex + '\'' +
                ", name='" + name + '\'' +
                ", type='" + type + '\'' +
                ", version='" + version + '\'' +
                ", hardware='" + hardware + '\'' +
                ", userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", ip='" + ip + '\'' +
                ", updateTime=" + updateTime +
                ", userIndex='" + userIndex + '\'' +
                '}';
    }
}
