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.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

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


     private Long idContratoFlat;
     private DdaTContratoPago ddaTContratoPago;
     private DdaTContratoPagoCateg ddaTContratoPagoCateg;
     private Long annio;
     private String costo;

    public DdaTContratoPagoFlat() {
    }

	
    public DdaTContratoPagoFlat(Long idContratoFlat) {
        this.idContratoFlat = idContratoFlat;
    }
    public DdaTContratoPagoFlat(Long idContratoFlat, DdaTContratoPago ddaTContratoPago, DdaTContratoPagoCateg ddaTContratoPagoCateg, Long annio, String costo) {
       this.idContratoFlat = idContratoFlat;
       this.ddaTContratoPago = ddaTContratoPago;
       this.ddaTContratoPagoCateg = ddaTContratoPagoCateg;
       this.annio = annio;
       this.costo = costo;
    }
   
     @Id 

    
    @Column(name="ID_CONTRATO_FLAT", unique=true, nullable=false, precision=38, scale=0)
    public Long getIdContratoFlat() {
        return this.idContratoFlat;
    }
    
    public void setIdContratoFlat(Long idContratoFlat) {
        this.idContratoFlat = idContratoFlat;
    }

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="ID_CONTRATO_PAGO")
    public DdaTContratoPago getDdaTContratoPago() {
        return this.ddaTContratoPago;
    }
    
    public void setDdaTContratoPago(DdaTContratoPago ddaTContratoPago) {
        this.ddaTContratoPago = ddaTContratoPago;
    }

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="ID_PAGO_CATEG")
    public DdaTContratoPagoCateg getDdaTContratoPagoCateg() {
        return this.ddaTContratoPagoCateg;
    }
    
    public void setDdaTContratoPagoCateg(DdaTContratoPagoCateg ddaTContratoPagoCateg) {
        this.ddaTContratoPagoCateg = ddaTContratoPagoCateg;
    }

    
    @Column(name="ANNIO", precision=2, scale=0)
    public Long getAnnio() {
        return this.annio;
    }
    
    public void setAnnio(Long annio) {
        this.annio = annio;
    }

    
    @Column(name="COSTO", length=25)
    public String getCosto() {
        return this.costo;
    }
    
    public void setCosto(String costo) {
        this.costo = costo;
    }




}


