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;

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


     private DdaTContratoSapId id;
     private DdaTContrato ddaTContrato;
     private String monto;

    public DdaTContratoSap() {
    }

	
    public DdaTContratoSap(DdaTContratoSapId id, DdaTContrato ddaTContrato) {
        this.id = id;
        this.ddaTContrato = ddaTContrato;
    }
    public DdaTContratoSap(DdaTContratoSapId id, DdaTContrato ddaTContrato, String monto) {
       this.id = id;
       this.ddaTContrato = ddaTContrato;
       this.monto = monto;
    }
   
     @EmbeddedId

    
    @AttributeOverrides( {
        @AttributeOverride(name="idContrato", column=@Column(name="ID_CONTRATO", nullable=false, precision=38, scale=0) ), 
        @AttributeOverride(name="posicion", column=@Column(name="POSICION", nullable=false, length=5) ) } )
    public DdaTContratoSapId getId() {
        return this.id;
    }
    
    public void setId(DdaTContratoSapId id) {
        this.id = id;
    }

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="ID_CONTRATO", nullable=false, insertable=false, updatable=false)
    public DdaTContrato getDdaTContrato() {
        return this.ddaTContrato;
    }
    
    public void setDdaTContrato(DdaTContrato ddaTContrato) {
        this.ddaTContrato = ddaTContrato;
    }

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




}


