package com.bailuntec.domain.entity;

import lombok.Data;

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_sku_tag.bailuin_sku
     *
     * @mbg.generated
     */
    private String bailuinSku;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_sku_tag.tag_code
     *
     * @mbg.generated
     */
    private String tagCode;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_sku_tag.tag_values_code
     *
     * @mbg.generated
     */
    private String tagValuesCode;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_sku_tag.tag_values_name
     *
     * @mbg.generated
     */
    private String tagValuesName;

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_base_sku_tag
     *
     * @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(", bailuinSku=").append(bailuinSku);
        sb.append(", tagCode=").append(tagCode);
        sb.append(", tagValuesCode=").append(tagValuesCode);
        sb.append(", tagValuesName=").append(tagValuesName);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_base_sku_tag
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DcBaseSkuTag other = (DcBaseSkuTag) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getBailuinSku() == null ? other.getBailuinSku() == null : this.getBailuinSku().equals(other.getBailuinSku()))
            && (this.getTagCode() == null ? other.getTagCode() == null : this.getTagCode().equals(other.getTagCode()))
            && (this.getTagValuesCode() == null ? other.getTagValuesCode() == null : this.getTagValuesCode().equals(other.getTagValuesCode()))
            && (this.getTagValuesName() == null ? other.getTagValuesName() == null : this.getTagValuesName().equals(other.getTagValuesName()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_base_sku_tag
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getBailuinSku() == null) ? 0 : getBailuinSku().hashCode());
        result = prime * result + ((getTagCode() == null) ? 0 : getTagCode().hashCode());
        result = prime * result + ((getTagValuesCode() == null) ? 0 : getTagValuesCode().hashCode());
        result = prime * result + ((getTagValuesName() == null) ? 0 : getTagValuesName().hashCode());
        return result;
    }
}