package com.bailuntec.domain.entity;

import lombok.Data;

@Data
public class DcAutoJitInventory {
    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_auto_jit_inventory.id
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_auto_jit_inventory.bailun_sku
     *
     * @mbg.generated
     */
    private String bailunSku;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_auto_jit_inventory.bailun_sku_title
     *
     * @mbg.generated
     */
    private String bailunSkuTitle;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_auto_jit_inventory.safe_stock
     *
     * @mbg.generated
     */
    private Integer safeStock;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_auto_jit_inventory.status
     *
     * @mbg.generated
     */
    private Integer status;

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_auto_jit_inventory
     *
     * @mbg.generated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", bailunSku=").append(bailunSku);
        sb.append(", bailunSkuTitle=").append(bailunSkuTitle);
        sb.append(", safeStock=").append(safeStock);
        sb.append(", status=").append(status);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_auto_jit_inventory
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DcAutoJitInventory other = (DcAutoJitInventory) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getBailunSku() == null ? other.getBailunSku() == null : this.getBailunSku().equals(other.getBailunSku()))
            && (this.getBailunSkuTitle() == null ? other.getBailunSkuTitle() == null : this.getBailunSkuTitle().equals(other.getBailunSkuTitle()))
            && (this.getSafeStock() == null ? other.getSafeStock() == null : this.getSafeStock().equals(other.getSafeStock()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_auto_jit_inventory
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getBailunSku() == null) ? 0 : getBailunSku().hashCode());
        result = prime * result + ((getBailunSkuTitle() == null) ? 0 : getBailunSkuTitle().hashCode());
        result = prime * result + ((getSafeStock() == null) ? 0 : getSafeStock().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        return result;
    }
}