package com.bailuntec.domain.entity;

import lombok.Data;

import java.math.BigDecimal;

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_amazon_advert.campaign_name
     *
     * @mbg.generated
     */
    private String campaignName;

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

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_amazon_advert.campaign_budget
     *
     * @mbg.generated
     */
    private BigDecimal campaignBudget;

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

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

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

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

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

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_amazon_advert.cost
     *
     * @mbg.generated
     */
    private BigDecimal cost;

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

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

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

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

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_amazon_advert
     *
     * @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(", campaignName=").append(campaignName);
        sb.append(", campaignId=").append(campaignId);
        sb.append(", campaignStatus=").append(campaignStatus);
        sb.append(", campaignBudget=").append(campaignBudget);
        sb.append(", attributedConversionsOneday=").append(attributedConversionsOneday);
        sb.append(", attributedUnitsOrderedOneday=").append(attributedUnitsOrderedOneday);
        sb.append(", attributedSalesOneday=").append(attributedSalesOneday);
        sb.append(", attributedUnitsOrderedSevenday=").append(attributedUnitsOrderedSevenday);
        sb.append(", impressions=").append(impressions);
        sb.append(", clicks=").append(clicks);
        sb.append(", cost=").append(cost);
        sb.append(", attributedConversionsThirtyday=").append(attributedConversionsThirtyday);
        sb.append(", attributedConversionsFourteenday=").append(attributedConversionsFourteenday);
        sb.append(", attributedConversionsSevenday=").append(attributedConversionsSevenday);
        sb.append(", attributedSalesThirtyday=").append(attributedSalesThirtyday);
        sb.append(", attributedSalesFourteenday=").append(attributedSalesFourteenday);
        sb.append(", attributedSalesSevenday=").append(attributedSalesSevenday);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_amazon_advert
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DcAmazonAdvert other = (DcAmazonAdvert) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCampaignName() == null ? other.getCampaignName() == null : this.getCampaignName().equals(other.getCampaignName()))
            && (this.getCampaignId() == null ? other.getCampaignId() == null : this.getCampaignId().equals(other.getCampaignId()))
            && (this.getCampaignStatus() == null ? other.getCampaignStatus() == null : this.getCampaignStatus().equals(other.getCampaignStatus()))
            && (this.getCampaignBudget() == null ? other.getCampaignBudget() == null : this.getCampaignBudget().equals(other.getCampaignBudget()))
            && (this.getAttributedConversionsOneday() == null ? other.getAttributedConversionsOneday() == null : this.getAttributedConversionsOneday().equals(other.getAttributedConversionsOneday()))
            && (this.getAttributedUnitsOrderedOneday() == null ? other.getAttributedUnitsOrderedOneday() == null : this.getAttributedUnitsOrderedOneday().equals(other.getAttributedUnitsOrderedOneday()))
            && (this.getAttributedSalesOneday() == null ? other.getAttributedSalesOneday() == null : this.getAttributedSalesOneday().equals(other.getAttributedSalesOneday()))
            && (this.getAttributedUnitsOrderedSevenday() == null ? other.getAttributedUnitsOrderedSevenday() == null : this.getAttributedUnitsOrderedSevenday().equals(other.getAttributedUnitsOrderedSevenday()))
            && (this.getImpressions() == null ? other.getImpressions() == null : this.getImpressions().equals(other.getImpressions()))
            && (this.getClicks() == null ? other.getClicks() == null : this.getClicks().equals(other.getClicks()))
            && (this.getCost() == null ? other.getCost() == null : this.getCost().equals(other.getCost()))
            && (this.getAttributedConversionsThirtyday() == null ? other.getAttributedConversionsThirtyday() == null : this.getAttributedConversionsThirtyday().equals(other.getAttributedConversionsThirtyday()))
            && (this.getAttributedConversionsFourteenday() == null ? other.getAttributedConversionsFourteenday() == null : this.getAttributedConversionsFourteenday().equals(other.getAttributedConversionsFourteenday()))
            && (this.getAttributedConversionsSevenday() == null ? other.getAttributedConversionsSevenday() == null : this.getAttributedConversionsSevenday().equals(other.getAttributedConversionsSevenday()))
            && (this.getAttributedSalesThirtyday() == null ? other.getAttributedSalesThirtyday() == null : this.getAttributedSalesThirtyday().equals(other.getAttributedSalesThirtyday()))
            && (this.getAttributedSalesFourteenday() == null ? other.getAttributedSalesFourteenday() == null : this.getAttributedSalesFourteenday().equals(other.getAttributedSalesFourteenday()))
            && (this.getAttributedSalesSevenday() == null ? other.getAttributedSalesSevenday() == null : this.getAttributedSalesSevenday().equals(other.getAttributedSalesSevenday()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_amazon_advert
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCampaignName() == null) ? 0 : getCampaignName().hashCode());
        result = prime * result + ((getCampaignId() == null) ? 0 : getCampaignId().hashCode());
        result = prime * result + ((getCampaignStatus() == null) ? 0 : getCampaignStatus().hashCode());
        result = prime * result + ((getCampaignBudget() == null) ? 0 : getCampaignBudget().hashCode());
        result = prime * result + ((getAttributedConversionsOneday() == null) ? 0 : getAttributedConversionsOneday().hashCode());
        result = prime * result + ((getAttributedUnitsOrderedOneday() == null) ? 0 : getAttributedUnitsOrderedOneday().hashCode());
        result = prime * result + ((getAttributedSalesOneday() == null) ? 0 : getAttributedSalesOneday().hashCode());
        result = prime * result + ((getAttributedUnitsOrderedSevenday() == null) ? 0 : getAttributedUnitsOrderedSevenday().hashCode());
        result = prime * result + ((getImpressions() == null) ? 0 : getImpressions().hashCode());
        result = prime * result + ((getClicks() == null) ? 0 : getClicks().hashCode());
        result = prime * result + ((getCost() == null) ? 0 : getCost().hashCode());
        result = prime * result + ((getAttributedConversionsThirtyday() == null) ? 0 : getAttributedConversionsThirtyday().hashCode());
        result = prime * result + ((getAttributedConversionsFourteenday() == null) ? 0 : getAttributedConversionsFourteenday().hashCode());
        result = prime * result + ((getAttributedConversionsSevenday() == null) ? 0 : getAttributedConversionsSevenday().hashCode());
        result = prime * result + ((getAttributedSalesThirtyday() == null) ? 0 : getAttributedSalesThirtyday().hashCode());
        result = prime * result + ((getAttributedSalesFourteenday() == null) ? 0 : getAttributedSalesFourteenday().hashCode());
        result = prime * result + ((getAttributedSalesSevenday() == null) ? 0 : getAttributedSalesSevenday().hashCode());
        return result;
    }
}