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;

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


     private Long idApartadoOrigen;
     private Long idApartadoDestino;
     private String montoOrigen;
     private String montoDestino;
     private String montoTransferido;
     private Date fechaTransferencia;
     private String expediente;

    public DdaTApartadoTransferId() {
    }

    public DdaTApartadoTransferId(Long idApartadoOrigen, Long idApartadoDestino, String montoOrigen, String montoDestino, String montoTransferido, Date fechaTransferencia, String expediente) {
       this.idApartadoOrigen = idApartadoOrigen;
       this.idApartadoDestino = idApartadoDestino;
       this.montoOrigen = montoOrigen;
       this.montoDestino = montoDestino;
       this.montoTransferido = montoTransferido;
       this.fechaTransferencia = fechaTransferencia;
       this.expediente = expediente;
    }
   


    @Column(name="ID_APARTADO_ORIGEN", precision=38, scale=0)
    public Long getIdApartadoOrigen() {
        return this.idApartadoOrigen;
    }
    
    public void setIdApartadoOrigen(Long idApartadoOrigen) {
        this.idApartadoOrigen = idApartadoOrigen;
    }


    @Column(name="ID_APARTADO_DESTINO", precision=38, scale=0)
    public Long getIdApartadoDestino() {
        return this.idApartadoDestino;
    }
    
    public void setIdApartadoDestino(Long idApartadoDestino) {
        this.idApartadoDestino = idApartadoDestino;
    }


    @Column(name="MONTO_ORIGEN", length=25)
    public String getMontoOrigen() {
        return this.montoOrigen;
    }
    
    public void setMontoOrigen(String montoOrigen) {
        this.montoOrigen = montoOrigen;
    }


    @Column(name="MONTO_DESTINO", length=25)
    public String getMontoDestino() {
        return this.montoDestino;
    }
    
    public void setMontoDestino(String montoDestino) {
        this.montoDestino = montoDestino;
    }


    @Column(name="MONTO_TRANSFERIDO", length=25)
    public String getMontoTransferido() {
        return this.montoTransferido;
    }
    
    public void setMontoTransferido(String montoTransferido) {
        this.montoTransferido = montoTransferido;
    }


    @Column(name="FECHA_TRANSFERENCIA", length=7)
    public Date getFechaTransferencia() {
        return this.fechaTransferencia;
    }
    
    public void setFechaTransferencia(Date fechaTransferencia) {
        this.fechaTransferencia = fechaTransferencia;
    }


    @Column(name="EXPEDIENTE", length=50)
    public String getExpediente() {
        return this.expediente;
    }
    
    public void setExpediente(String expediente) {
        this.expediente = expediente;
    }


   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof DdaTApartadoTransferId) ) return false;
		 DdaTApartadoTransferId castOther = ( DdaTApartadoTransferId ) other; 
         
		 return ( (this.getIdApartadoOrigen()==castOther.getIdApartadoOrigen()) || ( this.getIdApartadoOrigen()!=null && castOther.getIdApartadoOrigen()!=null && this.getIdApartadoOrigen().equals(castOther.getIdApartadoOrigen()) ) )
 && ( (this.getIdApartadoDestino()==castOther.getIdApartadoDestino()) || ( this.getIdApartadoDestino()!=null && castOther.getIdApartadoDestino()!=null && this.getIdApartadoDestino().equals(castOther.getIdApartadoDestino()) ) )
 && ( (this.getMontoOrigen()==castOther.getMontoOrigen()) || ( this.getMontoOrigen()!=null && castOther.getMontoOrigen()!=null && this.getMontoOrigen().equals(castOther.getMontoOrigen()) ) )
 && ( (this.getMontoDestino()==castOther.getMontoDestino()) || ( this.getMontoDestino()!=null && castOther.getMontoDestino()!=null && this.getMontoDestino().equals(castOther.getMontoDestino()) ) )
 && ( (this.getMontoTransferido()==castOther.getMontoTransferido()) || ( this.getMontoTransferido()!=null && castOther.getMontoTransferido()!=null && this.getMontoTransferido().equals(castOther.getMontoTransferido()) ) )
 && ( (this.getFechaTransferencia()==castOther.getFechaTransferencia()) || ( this.getFechaTransferencia()!=null && castOther.getFechaTransferencia()!=null && this.getFechaTransferencia().equals(castOther.getFechaTransferencia()) ) )
 && ( (this.getExpediente()==castOther.getExpediente()) || ( this.getExpediente()!=null && castOther.getExpediente()!=null && this.getExpediente().equals(castOther.getExpediente()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getIdApartadoOrigen() == null ? 0 : this.getIdApartadoOrigen().hashCode() );
         result = 37 * result + ( getIdApartadoDestino() == null ? 0 : this.getIdApartadoDestino().hashCode() );
         result = 37 * result + ( getMontoOrigen() == null ? 0 : this.getMontoOrigen().hashCode() );
         result = 37 * result + ( getMontoDestino() == null ? 0 : this.getMontoDestino().hashCode() );
         result = 37 * result + ( getMontoTransferido() == null ? 0 : this.getMontoTransferido().hashCode() );
         result = 37 * result + ( getFechaTransferencia() == null ? 0 : this.getFechaTransferencia().hashCode() );
         result = 37 * result + ( getExpediente() == null ? 0 : this.getExpediente().hashCode() );
         return result;
   }   


}


