package com.bailuntec.domain.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;

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

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

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column job_amazon_ad_log.report_id
     *
     * @mbg.generated
     */
    private String reportId;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column job_amazon_ad_log.report_date
     *
     * @mbg.generated
     */
    private LocalDate reportDate;

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

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column job_amazon_ad_log.bj_create
     *
     * @mbg.generated
     */
    private LocalDateTime bjCreate;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column job_amazon_ad_log.bj_modified
     *
     * @mbg.generated
     */
    private LocalDateTime bjModified;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column job_amazon_ad_log.site_en
     *
     * @mbg.generated
     */
    private String siteEn;

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table job_amazon_ad_log
     *
     * @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(", accountId=").append(accountId);
        sb.append(", reportId=").append(reportId);
        sb.append(", reportDate=").append(reportDate);
        sb.append(", status=").append(status);
        sb.append(", bjCreate=").append(bjCreate);
        sb.append(", bjModified=").append(bjModified);
        sb.append(", siteEn=").append(siteEn);
        sb.append(", companyId=").append(companyId);
        sb.append(", type=").append(type);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table job_amazon_ad_log
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        JobAmazonAdLog other = (JobAmazonAdLog) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
                && (this.getAccountId() == null ? other.getAccountId() == null : this.getAccountId().equals(other.getAccountId()))
                && (this.getReportId() == null ? other.getReportId() == null : this.getReportId().equals(other.getReportId()))
                && (this.getReportDate() == null ? other.getReportDate() == null : this.getReportDate().equals(other.getReportDate()))
                && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
                && (this.getBjCreate() == null ? other.getBjCreate() == null : this.getBjCreate().equals(other.getBjCreate()))
                && (this.getBjModified() == null ? other.getBjModified() == null : this.getBjModified().equals(other.getBjModified()))
                && (this.getSiteEn() == null ? other.getSiteEn() == null : this.getSiteEn().equals(other.getSiteEn()))
                && (this.getCompanyId() == null ? other.getCompanyId() == null : this.getCompanyId().equals(other.getCompanyId()))
                && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table job_amazon_ad_log
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getAccountId() == null) ? 0 : getAccountId().hashCode());
        result = prime * result + ((getReportId() == null) ? 0 : getReportId().hashCode());
        result = prime * result + ((getReportDate() == null) ? 0 : getReportDate().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getBjCreate() == null) ? 0 : getBjCreate().hashCode());
        result = prime * result + ((getBjModified() == null) ? 0 : getBjModified().hashCode());
        result = prime * result + ((getSiteEn() == null) ? 0 : getSiteEn().hashCode());
        result = prime * result + ((getCompanyId() == null) ? 0 : getCompanyId().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        return result;
    }
}
