package com.bailuntec.domain.entity;

import lombok.Data;

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

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_oms_handle.bailun_category_name
     *
     * @mbg.generated
     */
    private String bailunCategoryName;

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_base_oms_handle
     *
     * @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(", bailunCategoryId=").append(bailunCategoryId);
        sb.append(", bailunCategoryName=").append(bailunCategoryName);
        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_base_oms_handle
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DcBaseOmsHandle other = (DcBaseOmsHandle) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getBailunCategoryId() == null ? other.getBailunCategoryId() == null : this.getBailunCategoryId().equals(other.getBailunCategoryId()))
            && (this.getBailunCategoryName() == null ? other.getBailunCategoryName() == null : this.getBailunCategoryName().equals(other.getBailunCategoryName()))
            && (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_base_oms_handle
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getBailunCategoryId() == null) ? 0 : getBailunCategoryId().hashCode());
        result = prime * result + ((getBailunCategoryName() == null) ? 0 : getBailunCategoryName().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        return result;
    }
}