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;

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


     private DdaTContratoFeesPresupId id;
     private DdaTContratoFees ddaTContratoFees;
     private String monto;

    public DdaTContratoFeesPresup() {
    }

	
    public DdaTContratoFeesPresup(DdaTContratoFeesPresupId id, DdaTContratoFees ddaTContratoFees) {
        this.id = id;
        this.ddaTContratoFees = ddaTContratoFees;
    }
    public DdaTContratoFeesPresup(DdaTContratoFeesPresupId id, DdaTContratoFees ddaTContratoFees, String monto) {
       this.id = id;
       this.ddaTContratoFees = ddaTContratoFees;
       this.monto = monto;
    }
   
     @EmbeddedId

    
    @AttributeOverrides( {
        @AttributeOverride(name="annio", column=@Column(name="ANNIO", nullable=false, length=4) ), 
        @AttributeOverride(name="idContrato", column=@Column(name="ID_CONTRATO", nullable=false, precision=38, scale=0) ) } )
    public DdaTContratoFeesPresupId getId() {
        return this.id;
    }
    
    public void setId(DdaTContratoFeesPresupId id) {
        this.id = id;
    }

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="ID_CONTRATO", nullable=false, insertable=false, updatable=false)
    public DdaTContratoFees getDdaTContratoFees() {
        return this.ddaTContratoFees;
    }
    
    public void setDdaTContratoFees(DdaTContratoFees ddaTContratoFees) {
        this.ddaTContratoFees = ddaTContratoFees;
    }

    
    @Column(name="MONTO", length=25)
    public String getMonto() {
        return this.monto;
    }
    
    public void setMonto(String monto) {
        this.monto = monto;
    }




}


