package com.huimv.produce.warning.dao.entity;

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

@Entity
@Table(name = "prod_weight")
public class ProdWeightEntity implements Serializable {

    private static final long serialVersionUID = 1L;

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

    @Column(name = "add_time")
    private Timestamp addTime;

    /**
     * 毛重
     */
    @Column(name = "gross_weight")
    private Float grossWeight;

    /**
     * 皮重
     */
    @Column(name = "tare_weight")
    private Float tareWeight;

    /**
     * 净重
     */
    @Column(name = "net_weight")
    private Float netWeight;

    @Column(name = "farm_id")
    private Integer farmId;

    @Column(name = "batch_id")
    private Integer batchId;

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

    public Integer getId() {
        return id;
    }

    public void setAddTime(Timestamp addTime) {
        this.addTime = addTime;
    }

    public Timestamp getAddTime() {
        return addTime;
    }

    /**
     * 毛重
     */
    public void setGrossWeight(Float grossWeight) {
        this.grossWeight = grossWeight;
    }

    /**
     * 毛重
     */
    public Float getGrossWeight() {
        return grossWeight;
    }

    /**
     * 皮重
     */
    public void setTareWeight(Float tareWeight) {
        this.tareWeight = tareWeight;
    }

    /**
     * 皮重
     */
    public Float getTareWeight() {
        return tareWeight;
    }

    /**
     * 净重
     */
    public void setNetWeight(Float netWeight) {
        this.netWeight = netWeight;
    }

    /**
     * 净重
     */
    public Float getNetWeight() {
        return netWeight;
    }

    public void setFarmId(Integer farmId) {
        this.farmId = farmId;
    }

    public Integer getFarmId() {
        return farmId;
    }

    public void setBatchId(Integer batchId) {
        this.batchId = batchId;
    }

    public Integer getBatchId() {
        return batchId;
    }

    @Override
    public String toString() {
        return "ProdWeightEntity{" +
                "id=" + id + '\'' +
                "addTime=" + addTime + '\'' +
                "grossWeight=" + grossWeight + '\'' +
                "tareWeight=" + tareWeight + '\'' +
                "netWeight=" + netWeight + '\'' +
                "farmId=" + farmId + '\'' +
                "batchId=" + batchId + '\'' +
                '}';
    }
}
