package com.uas.finance.model;

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 可以从金融平台获取数据的企业信息
 *
 * @author hejq
 */
@Entity
@Table(name = "finance$enterprise")
public class Enterprise implements Serializable {

    /**
     * 序列号
     */
    private static final long serialVersionUID = 1L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "en_uu")
    private Long uu;

    /**
     * 公司名称
     */
    @NotNull
    @Column(name = "en_name")
    private String enName;

    /**
     * 简称
     */
    @Column(name = "en_shortname")
    private String enShortname;

    /**
     * 商业登记证号
     */
    @Column(name = "en_businesscode")
    private String enBussinessCode;

    /**
     * 私钥
     */
    @Column(name = "en_accesssecret")
    private String accessSecret;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getUu() {
        return uu;
    }

    public void setUu(Long uu) {
        this.uu = uu;
    }

    public String getEnName() {
        return enName;
    }

    public void setEnName(String enName) {
        this.enName = enName;
    }

    public String getEnShortname() {
        return enShortname;
    }

    public void setEnShortname(String enShortname) {
        this.enShortname = enShortname;
    }

    public String getEnBussinessCode() {
        return enBussinessCode;
    }

    public void setEnBussinessCode(String enBussinessCode) {
        this.enBussinessCode = enBussinessCode;
    }

    public String getAccessSecret() {
        return accessSecret;
    }

    public void setAccessSecret(String accessSecret) {
        this.accessSecret = accessSecret;
    }
}
