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.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Parameter;

/**
 * DdaTContratoProceso generated by hbm2java
 */
@Entity
@Table(name="DDA_T_CONTRATO_PROCESO"
)
public class DdaTContratoProceso  implements java.io.Serializable {


     private Long idContrato;
     private DdaTContrato ddaTContrato;
     private Integer amortizacion;

    public DdaTContratoProceso() {
    }

	
    public DdaTContratoProceso(DdaTContrato ddaTContrato) {
        this.ddaTContrato = ddaTContrato;
    }
    public DdaTContratoProceso(DdaTContrato ddaTContrato, Integer amortizacion) {
       this.ddaTContrato = ddaTContrato;
       this.amortizacion = amortizacion;
    }
   
     @GenericGenerator(name="generator", strategy="foreign", parameters=@Parameter(name="property", value="ddaTContrato"))@Id @GeneratedValue(generator="generator")

    
    @Column(name="ID_CONTRATO", unique=true, nullable=false, precision=38, scale=0)
    public Long getIdContrato() {
        return this.idContrato;
    }
    
    public void setIdContrato(Long idContrato) {
        this.idContrato = idContrato;
    }

@OneToOne(fetch=FetchType.LAZY)@PrimaryKeyJoinColumn
    public DdaTContrato getDdaTContrato() {
        return this.ddaTContrato;
    }
    
    public void setDdaTContrato(DdaTContrato ddaTContrato) {
        this.ddaTContrato = ddaTContrato;
    }

    
    @Column(name="AMORTIZACION", precision=1, scale=0)
    public Integer getAmortizacion() {
        return this.amortizacion;
    }
    
    public void setAmortizacion(Integer amortizacion) {
        this.amortizacion = amortizacion;
    }




}


