package com.dla.dda.persistence.model;
// Generated Aug 12, 2016 1:06:47 PM by Hibernate Tools 5.0.0.Final


import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 * DdaTReportePagoTituloId generated by hbm2java
 */
@Embeddable
public class DdaTReportePagoTituloId  implements java.io.Serializable {


     private long idContrato;
     private Long idTituloCntorig;

    public DdaTReportePagoTituloId() {
    }

    public DdaTReportePagoTituloId(long idContrato, Long idTituloCntorig) {
       this.idContrato = idContrato;
       this.idTituloCntorig = idTituloCntorig;
    }
   


    @Column(name="ID_CONTRATO", nullable=false, precision=38, scale=0)
    public long getIdContrato() {
        return this.idContrato;
    }
    
    public void setIdContrato(long idContrato) {
        this.idContrato = idContrato;
    }


    @Column(name="ID_TITULO_CNTORIG", nullable=false, precision=38, scale=0)
    public Long getIdTituloCntorig() {
        return this.idTituloCntorig;
    }
    
    public void setIdTituloCntorig(Long idTituloCntorig) {
        this.idTituloCntorig = idTituloCntorig;
    }


   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof DdaTReportePagoTituloId) ) return false;
		 DdaTReportePagoTituloId castOther = ( DdaTReportePagoTituloId ) other; 
         
		 return (this.getIdContrato()==castOther.getIdContrato())
 && ( (this.getIdTituloCntorig()==castOther.getIdTituloCntorig()) || ( this.getIdTituloCntorig()!=null && castOther.getIdTituloCntorig()!=null && this.getIdTituloCntorig().equals(castOther.getIdTituloCntorig()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + (int) this.getIdContrato();
         result = 37 * result + ( getIdTituloCntorig() == null ? 0 : this.getIdTituloCntorig().hashCode() );
         return result;
   }   


}


