CarDevice.java 2.98 KB
package com.bsth.entity;

import javax.persistence.*;
import java.util.Date;

/**
 * 车辆设备信息(记录车辆设备变更情况,因为是历史表,字段不做关联)
 */
@Entity
@Table(name = "bsth_c_car_device")
public class CarDevice {

    /** 主键 */
    @Id
    @GeneratedValue
    private Long id;

    /** 公司名称 */
    @Column(nullable = false)
    private String gsName;
    /** 内部编号(自编号) */
    private String clZbh;
    /** 线路名称 */
    private String xlName;

    /** 旧终端号 */
    private String oldDeviceNo;
    /** 新终端号 */
    private String newDeviceNo;
    /** 旧SIM卡号 */
    private String oldSimNo;
    /** 新SIM卡号 */
    private String newSimNo;

    /** 故障描述 */
    private String troubleDesc;
    /** 保修描述 */
    private String guaranteeDesc;

    // 创建日期
    @Column(updatable = false, name = "create_date", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP")
    private Date createDate;

    // 修改日期
    @Column(name = "update_date", columnDefinition = "TIMESTAMP  DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP")
    private Date updateDate;

    public Long getId() {
        return id;
    }

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

    public String getGsName() {
        return gsName;
    }

    public void setGsName(String gsName) {
        this.gsName = gsName;
    }

    public String getClZbh() {
        return clZbh;
    }

    public void setClZbh(String clZbh) {
        this.clZbh = clZbh;
    }

    public String getXlName() {
        return xlName;
    }

    public void setXlName(String xlName) {
        this.xlName = xlName;
    }

    public String getOldDeviceNo() {
        return oldDeviceNo;
    }

    public void setOldDeviceNo(String oldDeviceNo) {
        this.oldDeviceNo = oldDeviceNo;
    }

    public String getNewDeviceNo() {
        return newDeviceNo;
    }

    public void setNewDeviceNo(String newDeviceNo) {
        this.newDeviceNo = newDeviceNo;
    }

    public String getOldSimNo() {
        return oldSimNo;
    }

    public void setOldSimNo(String oldSimNo) {
        this.oldSimNo = oldSimNo;
    }

    public String getNewSimNo() {
        return newSimNo;
    }

    public void setNewSimNo(String newSimNo) {
        this.newSimNo = newSimNo;
    }

    public String getTroubleDesc() {
        return troubleDesc;
    }

    public void setTroubleDesc(String troubleDesc) {
        this.troubleDesc = troubleDesc;
    }

    public String getGuaranteeDesc() {
        return guaranteeDesc;
    }

    public void setGuaranteeDesc(String guaranteeDesc) {
        this.guaranteeDesc = guaranteeDesc;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }
}