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;

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


     private long idFactura;
     private Date mes;
     private Long idContratoOriginal;

    public DdaTFacturaDetalleId() {
    }

    public DdaTFacturaDetalleId(long idFactura, Date mes, Long idContratoOriginal) {
       this.idFactura = idFactura;
       this.mes = mes;
       this.idContratoOriginal = idContratoOriginal;
    }
   


    @Column(name="ID_FACTURA", nullable=false, precision=38, scale=0)
    public long getIdFactura() {
        return this.idFactura;
    }
    
    public void setIdFactura(long idFactura) {
        this.idFactura = idFactura;
    }


    @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_ORIGINAL", nullable=false, precision=38, scale=0)
    public Long getIdContratoOriginal() {
        return this.idContratoOriginal;
    }
    
    public void setIdContratoOriginal(Long idContratoOriginal) {
        this.idContratoOriginal = idContratoOriginal;
    }


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


}


