AMPMachine.java 1.69 KB
package com.xkl.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.sql.Timestamp;

/**
 * 用户数据的domain类
 */
@Entity
@Table(name = "xkl_amp_machine")
public class AMPMachine {

    //machine id
    @Id
    @Column(name = "id")
    private long id;

    //AMP序列号或机器硬件码
    @Column(name = "AMPSerial")
    private String AMPSerial;

    //上传软件密钥(明文存储)
    @Column(name = "secret_key")
    private String secretKey;

    //所属公司id
    @Column(name = "company_id")
    private int companyId;


    //创建时间
    @Column(name = "create_time")
    private Timestamp createTime;

    //状态(0,不可用;1可用)
    @Column(name = "status")
    private int status;

    public long getId() {
        return id;
    }

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

    public String getAMPSerial() {
        return AMPSerial;
    }

    public void setAMPSerial(String AMPSerial) {
        this.AMPSerial = AMPSerial;
    }

    public String getSecretKey() {
        return secretKey;
    }

    public void setSecretKey(String secretKey) {
        this.secretKey = secretKey;
    }

    public int getCompanyId() {
        return companyId;
    }

    public void setCompanyId(int companyId) {
        this.companyId = companyId;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

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

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}