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;

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


     private byte idFormato;
     private long idTituloCnt;

    public DdaTContratoTituloFtoId() {
    }

    public DdaTContratoTituloFtoId(byte idFormato, long idTituloCnt) {
       this.idFormato = idFormato;
       this.idTituloCnt = idTituloCnt;
    }
   


    @Column(name="ID_FORMATO", nullable=false, precision=2, scale=0)
    public byte getIdFormato() {
        return this.idFormato;
    }
    
    public void setIdFormato(byte idFormato) {
        this.idFormato = idFormato;
    }


    @Column(name="ID_TITULO_CNT", nullable=false, precision=38, scale=0)
    public long getIdTituloCnt() {
        return this.idTituloCnt;
    }
    
    public void setIdTituloCnt(long idTituloCnt) {
        this.idTituloCnt = idTituloCnt;
    }


   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof DdaTContratoTituloFtoId) ) return false;
		 DdaTContratoTituloFtoId castOther = ( DdaTContratoTituloFtoId ) other; 
         
		 return (this.getIdFormato()==castOther.getIdFormato())
 && (this.getIdTituloCnt()==castOther.getIdTituloCnt());
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + this.getIdFormato();
         result = 37 * result + (int) this.getIdTituloCnt();
         return result;
   }   


}


