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


import java.util.Date;
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;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

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


     private Long idFeesPredef;
     private DdaTContratoFees ddaTContratoFees;
     private String porcentaje;
     private String monto;
     private Date fecha;
     private String comentario;

    public DdaTContratoFeesPredef() {
    }

	
    public DdaTContratoFeesPredef(Long idFeesPredef) {
        this.idFeesPredef = idFeesPredef;
    }
    public DdaTContratoFeesPredef(Long idFeesPredef, DdaTContratoFees ddaTContratoFees, String porcentaje, String monto, Date fecha, String comentario) {
       this.idFeesPredef = idFeesPredef;
       this.ddaTContratoFees = ddaTContratoFees;
       this.porcentaje = porcentaje;
       this.monto = monto;
       this.fecha = fecha;
       this.comentario = comentario;
    }
   
     @Id 

    
    @Column(name="ID_FEES_PREDEF", unique=true, nullable=false, precision=38, scale=0)
    public Long getIdFeesPredef() {
        return this.idFeesPredef;
    }
    
    public void setIdFeesPredef(Long idFeesPredef) {
        this.idFeesPredef = idFeesPredef;
    }

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

    
    @Column(name="PORCENTAJE", length=3)
    public String getPorcentaje() {
        return this.porcentaje;
    }
    
    public void setPorcentaje(String porcentaje) {
        this.porcentaje = porcentaje;
    }

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

    @Temporal(TemporalType.DATE)
    @Column(name="FECHA", length=7)
    public Date getFecha() {
        return this.fecha;
    }
    
    public void setFecha(Date fecha) {
        this.fecha = fecha;
    }

    
    @Column(name="COMENTARIO", length=100)
    public String getComentario() {
        return this.comentario;
    }
    
    public void setComentario(String comentario) {
        this.comentario = comentario;
    }




}


