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;

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


     private Long idCntBv;
     private String idBv;

    public DdaTContratoBvId() {
    }

    public DdaTContratoBvId(Long idCntBv, String idBv) {
       this.idCntBv = idCntBv;
       this.idBv = idBv;
    }
   


    @Column(name="ID_CNT_BV", nullable=false, precision=38, scale=0)
    public Long getIdCntBv() {
        return this.idCntBv;
    }
    
    public void setIdCntBv(Long idCntBv) {
        this.idCntBv = idCntBv;
    }


    @Column(name="ID_BV", nullable=false, length=25)
    public String getIdBv() {
        return this.idBv;
    }
    
    public void setIdBv(String idBv) {
        this.idBv = idBv;
    }


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


}


