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


import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Embeddable;

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


     private Date mes;
     private Long idContrato;

    public DdaTTransaccionSapId() {
    }

    public DdaTTransaccionSapId(Date mes, Long idContrato) {
       this.mes = mes;
       this.idContrato = idContrato;
    }
   


    @Column(name="MES", nullable=false, length=7)
    public Date getMes() {
        return this.mes;
    }
    
    public void setMes(Date mes) {
        this.mes = mes;
    }


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


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


}


