package com.dla.dda.persistence.model;
// Generated Aug 12, 2016 1:06:47 PM by Hibernate Tools 5.0.0.Final


import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

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


     private DdaTContratoPagoCostoId id;
     private DdaTContratoPagoRango ddaTContratoPagoRango;
     private DdaTContratoPagoCateg ddaTContratoPagoCateg;
     private String costo;

    public DdaTContratoPagoCosto() {
    }

	
    public DdaTContratoPagoCosto(DdaTContratoPagoCostoId id, DdaTContratoPagoRango ddaTContratoPagoRango, DdaTContratoPagoCateg ddaTContratoPagoCateg) {
        this.id = id;
        this.ddaTContratoPagoRango = ddaTContratoPagoRango;
        this.ddaTContratoPagoCateg = ddaTContratoPagoCateg;
    }
    public DdaTContratoPagoCosto(DdaTContratoPagoCostoId id, DdaTContratoPagoRango ddaTContratoPagoRango, DdaTContratoPagoCateg ddaTContratoPagoCateg, String costo) {
       this.id = id;
       this.ddaTContratoPagoRango = ddaTContratoPagoRango;
       this.ddaTContratoPagoCateg = ddaTContratoPagoCateg;
       this.costo = costo;
    }
   
     @EmbeddedId

    
    @AttributeOverrides( {
        @AttributeOverride(name="idPagoRango", column=@Column(name="ID_PAGO_RANGO", nullable=false, precision=38, scale=0) ), 
        @AttributeOverride(name="idPagoCateg", column=@Column(name="ID_PAGO_CATEG", nullable=false, precision=38, scale=0) ) } )
    public DdaTContratoPagoCostoId getId() {
        return this.id;
    }
    
    public void setId(DdaTContratoPagoCostoId id) {
        this.id = id;
    }

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="ID_PAGO_RANGO", nullable=false, insertable=false, updatable=false)
    public DdaTContratoPagoRango getDdaTContratoPagoRango() {
        return this.ddaTContratoPagoRango;
    }
    
    public void setDdaTContratoPagoRango(DdaTContratoPagoRango ddaTContratoPagoRango) {
        this.ddaTContratoPagoRango = ddaTContratoPagoRango;
    }

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

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




}


