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;

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


     private DdaTContratoPlfAnnioId id;
     private DdaTContratoPlicense ddaTContratoPlicense;
     private String monto;

    public DdaTContratoPlfAnnio() {
    }

	
    public DdaTContratoPlfAnnio(DdaTContratoPlfAnnioId id, DdaTContratoPlicense ddaTContratoPlicense) {
        this.id = id;
        this.ddaTContratoPlicense = ddaTContratoPlicense;
    }
    public DdaTContratoPlfAnnio(DdaTContratoPlfAnnioId id, DdaTContratoPlicense ddaTContratoPlicense, String monto) {
       this.id = id;
       this.ddaTContratoPlicense = ddaTContratoPlicense;
       this.monto = monto;
    }
   
     @EmbeddedId

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

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="ID_CONTRATO", nullable=false, insertable=false, updatable=false)
    public DdaTContratoPlicense getDdaTContratoPlicense() {
        return this.ddaTContratoPlicense;
    }
    
    public void setDdaTContratoPlicense(DdaTContratoPlicense ddaTContratoPlicense) {
        this.ddaTContratoPlicense = ddaTContratoPlicense;
    }

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




}


