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;

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


     private short idPais;
     private Date mes;
     private boolean idTipocambio;

    public DdaTTcambioPaisId() {
    }

    public DdaTTcambioPaisId(short idPais, Date mes, boolean idTipocambio) {
       this.idPais = idPais;
       this.mes = mes;
       this.idTipocambio = idTipocambio;
    }
   


    @Column(name="ID_PAIS", nullable=false, precision=3, scale=0)
    public short getIdPais() {
        return this.idPais;
    }
    
    public void setIdPais(short idPais) {
        this.idPais = idPais;
    }


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


    @Column(name="ID_TIPOCAMBIO", nullable=false, precision=1, scale=0)
    public boolean isIdTipocambio() {
        return this.idTipocambio;
    }
    
    public void setIdTipocambio(boolean idTipocambio) {
        this.idTipocambio = idTipocambio;
    }


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


}


