package com.huimv.manage.eartag.dao.entity;

import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;

@Entity
@Table(name = "et_package")
public class EtPackageEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id", nullable = false)
    private Integer id;

    @Column(name = "package_id")
    private Integer packageId;

    @Column(name = "package_number")
    private String packageNumber;

    @Column(name = "apply_id")
    private Integer applyId;

    @Column(name = "package_data")
    private String packageData;

    public Integer getProduceState() {
        return produceState;
    }

    public void setProduceState(Integer produceState) {
        this.produceState = produceState;
    }

    public Timestamp getProduceStateDate() {
        return produceStateDate;
    }

    public void setProduceStateDate(Timestamp produceStateDate) {
        this.produceStateDate = produceStateDate;
    }

    @Column(name = "set_down_state")
    private Integer setDownState;

    @Column(name = "set_down_state_date")
    private Timestamp setDownStateDate;

    @Column(name = "download_date")
    private Timestamp downloadDate;

    @Column(name = "produce_state")
    private Integer produceState;

    @Column(name = "produce_state_date")
    private Timestamp produceStateDate;

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

    public Integer getId() {
        return id;
    }

    public void setPackageId(Integer packageId) {
        this.packageId = packageId;
    }

    public Integer getPackageId() {
        return packageId;
    }

    public void setPackageNumber(String packageNumber) {
        this.packageNumber = packageNumber;
    }

    public String getPackageNumber() {
        return packageNumber;
    }

    public void setApplyId(Integer applyId) {
        this.applyId = applyId;
    }

    public Integer getApplyId() {
        return applyId;
    }

    public void setPackageData(String packageData) {
        this.packageData = packageData;
    }

    public String getPackageData() {
        return packageData;
    }

    public void setSetDownState(Integer setDownState) {
        this.setDownState = setDownState;
    }

    public Integer getSetDownState() {
        return setDownState;
    }

    public void setSetDownStateDate(Timestamp setDownStateDate) {
        this.setDownStateDate = setDownStateDate;
    }

    public Timestamp getSetDownStateDate() {
        return setDownStateDate;
    }

    public void setDownloadDate(Timestamp downloadDate) {
        this.downloadDate = downloadDate;
    }

    public Timestamp getDownloadDate() {
        return downloadDate;
    }

    @Override
    public String toString() {
        return "EtPackageEntity{" +
                "id=" + id + '\'' +
                "packageId=" + packageId + '\'' +
                "packageNumber=" + packageNumber + '\'' +
                "applyId=" + applyId + '\'' +
                "packageData=" + packageData + '\'' +
                "setDownState=" + setDownState + '\'' +
                "setDownStateDate=" + setDownStateDate + '\'' +
                "downloadDate=" + downloadDate + '\'' +
                '}';
    }
}
