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;

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


     private Long idPagoRango;
     private long idPagoCateg;

    public DdaTContratoPagoCostoId() {
    }

    public DdaTContratoPagoCostoId(Long idPagoRango, long idPagoCateg) {
       this.idPagoRango = idPagoRango;
       this.idPagoCateg = idPagoCateg;
    }
   


    @Column(name="ID_PAGO_RANGO", nullable=false, precision=38, scale=0)
    public Long getIdPagoRango() {
        return this.idPagoRango;
    }
    
    public void setIdPagoRango(Long idPagoRango) {
        this.idPagoRango = idPagoRango;
    }


    @Column(name="ID_PAGO_CATEG", nullable=false, precision=38, scale=0)
    public long getIdPagoCateg() {
        return this.idPagoCateg;
    }
    
    public void setIdPagoCateg(long idPagoCateg) {
        this.idPagoCateg = idPagoCateg;
    }


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


}


