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;

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


     private String annio;
     private long idContrato;

    public DdaTContratoFeesPresupId() {
    }

    public DdaTContratoFeesPresupId(String annio, long idContrato) {
       this.annio = annio;
       this.idContrato = idContrato;
    }
   


    @Column(name="ANNIO", nullable=false, length=4)
    public String getAnnio() {
        return this.annio;
    }
    
    public void setAnnio(String annio) {
        this.annio = annio;
    }


    @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 DdaTContratoFeesPresupId) ) return false;
		 DdaTContratoFeesPresupId castOther = ( DdaTContratoFeesPresupId ) other; 
         
		 return ( (this.getAnnio()==castOther.getAnnio()) || ( this.getAnnio()!=null && castOther.getAnnio()!=null && this.getAnnio().equals(castOther.getAnnio()) ) )
 && (this.getIdContrato()==castOther.getIdContrato());
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getAnnio() == null ? 0 : this.getAnnio().hashCode() );
         result = 37 * result + (int) this.getIdContrato();
         return result;
   }   


}


