package org.cgiar.ccafs.marlo.data.model;
// Generated Jun 20, 2018 1:50:25 PM by Hibernate Tools 3.4.0.CR1


import org.cgiar.ccafs.marlo.data.IAuditLog;

import com.google.gson.annotations.Expose;

/**
 * ReportSynthesisMeliaStudy generated by hbm2java
 */
public class ReportSynthesisKeyPartnershipPmu extends MarloAuditableEntity implements java.io.Serializable, IAuditLog {

  private static final long serialVersionUID = 5761871053421733437L;


  @Expose
  private ReportSynthesisKeyPartnership reportSynthesisKeyPartnership;


  @Expose
  private ReportSynthesisKeyPartnershipExternal reportSynthesisKeyPartnershipExternal;


  public ReportSynthesisKeyPartnershipPmu() {
  }


  @Override
  public boolean equals(Object obj) {
    if (this == obj) {
      return true;
    }
    if (obj == null) {
      return false;
    }
    if (this.getClass() != obj.getClass()) {
      return false;
    }
    ReportSynthesisKeyPartnershipPmu other = (ReportSynthesisKeyPartnershipPmu) obj;
    if (this.getReportSynthesisKeyPartnershipExternal() == null) {
      if (other.getReportSynthesisKeyPartnershipExternal() != null) {
        return false;
      }
    } else if (!this.getReportSynthesisKeyPartnershipExternal()
      .equals(other.getReportSynthesisKeyPartnershipExternal())) {
      return false;
    }
    if (this.getReportSynthesisKeyPartnership() == null) {
      if (other.getReportSynthesisKeyPartnership() != null) {
        return false;
      }
    } else if (!this.getReportSynthesisKeyPartnership().getId()
      .equals(other.getReportSynthesisKeyPartnership().getId())) {
      return false;
    }
    return true;
  }


  @Override
  public String getLogDeatil() {
    StringBuilder sb = new StringBuilder();
    sb.append("Id : ").append(this.getId());
    return sb.toString();
  }

  public ReportSynthesisKeyPartnership getReportSynthesisKeyPartnership() {
    return reportSynthesisKeyPartnership;
  }


  public ReportSynthesisKeyPartnershipExternal getReportSynthesisKeyPartnershipExternal() {
    return reportSynthesisKeyPartnershipExternal;
  }


  public void setReportSynthesisKeyPartnership(ReportSynthesisKeyPartnership reportSynthesisKeyPartnership) {
    this.reportSynthesisKeyPartnership = reportSynthesisKeyPartnership;
  }

  public void setReportSynthesisKeyPartnershipExternal(
    ReportSynthesisKeyPartnershipExternal reportSynthesisKeyPartnershipExternal) {
    this.reportSynthesisKeyPartnershipExternal = reportSynthesisKeyPartnershipExternal;
  }


}

