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


import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Parameter;

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


     private Long idContrato;
     private DdaTContrato ddaTContrato;
     private String tipoFee;
     private String costoLicencia;
     private String comentarios;
     private String totalTitulos;
     private String prepago;
     private Set<DdaTContratoFeesPredef> ddaTContratoFeesPredefs = new HashSet<DdaTContratoFeesPredef>(0);
     private Set<DdaTContratoFeesPeriodo> ddaTContratoFeesPeriodos = new HashSet<DdaTContratoFeesPeriodo>(0);
     private Set<DdaTContratoFeesPresup> ddaTContratoFeesPresups = new HashSet<DdaTContratoFeesPresup>(0);

    public DdaTContratoFees() {
    }

	
    public DdaTContratoFees(DdaTContrato ddaTContrato) {
        this.ddaTContrato = ddaTContrato;
    }
    public DdaTContratoFees(DdaTContrato ddaTContrato, String tipoFee, String costoLicencia, String comentarios, String totalTitulos, String prepago, Set<DdaTContratoFeesPredef> ddaTContratoFeesPredefs, Set<DdaTContratoFeesPeriodo> ddaTContratoFeesPeriodos, Set<DdaTContratoFeesPresup> ddaTContratoFeesPresups) {
       this.ddaTContrato = ddaTContrato;
       this.tipoFee = tipoFee;
       this.costoLicencia = costoLicencia;
       this.comentarios = comentarios;
       this.totalTitulos = totalTitulos;
       this.prepago = prepago;
       this.ddaTContratoFeesPredefs = ddaTContratoFeesPredefs;
       this.ddaTContratoFeesPeriodos = ddaTContratoFeesPeriodos;
       this.ddaTContratoFeesPresups = ddaTContratoFeesPresups;
    }
   
     @GenericGenerator(name="generator", strategy="foreign", parameters=@Parameter(name="property", value="ddaTContrato"))@Id @GeneratedValue(generator="generator")

    
    @Column(name="ID_CONTRATO", unique=true, nullable=false, precision=38, scale=0)
    public Long getIdContrato() {
        return this.idContrato;
    }
    
    public void setIdContrato(Long idContrato) {
        this.idContrato = idContrato;
    }

@OneToOne(fetch=FetchType.LAZY)@PrimaryKeyJoinColumn
    public DdaTContrato getDdaTContrato() {
        return this.ddaTContrato;
    }
    
    public void setDdaTContrato(DdaTContrato ddaTContrato) {
        this.ddaTContrato = ddaTContrato;
    }

    
    @Column(name="TIPO_FEE", length=10)
    public String getTipoFee() {
        return this.tipoFee;
    }
    
    public void setTipoFee(String tipoFee) {
        this.tipoFee = tipoFee;
    }

    
    @Column(name="COSTO_LICENCIA", length=15)
    public String getCostoLicencia() {
        return this.costoLicencia;
    }
    
    public void setCostoLicencia(String costoLicencia) {
        this.costoLicencia = costoLicencia;
    }

    
    @Column(name="COMENTARIOS", length=100)
    public String getComentarios() {
        return this.comentarios;
    }
    
    public void setComentarios(String comentarios) {
        this.comentarios = comentarios;
    }

    
    @Column(name="TOTAL_TITULOS", length=4)
    public String getTotalTitulos() {
        return this.totalTitulos;
    }
    
    public void setTotalTitulos(String totalTitulos) {
        this.totalTitulos = totalTitulos;
    }

    
    @Column(name="PREPAGO", length=25)
    public String getPrepago() {
        return this.prepago;
    }
    
    public void setPrepago(String prepago) {
        this.prepago = prepago;
    }

@OneToMany(fetch=FetchType.LAZY, mappedBy="ddaTContratoFees")
    public Set<DdaTContratoFeesPredef> getDdaTContratoFeesPredefs() {
        return this.ddaTContratoFeesPredefs;
    }
    
    public void setDdaTContratoFeesPredefs(Set<DdaTContratoFeesPredef> ddaTContratoFeesPredefs) {
        this.ddaTContratoFeesPredefs = ddaTContratoFeesPredefs;
    }

@OneToMany(fetch=FetchType.LAZY, mappedBy="ddaTContratoFees")
    public Set<DdaTContratoFeesPeriodo> getDdaTContratoFeesPeriodos() {
        return this.ddaTContratoFeesPeriodos;
    }
    
    public void setDdaTContratoFeesPeriodos(Set<DdaTContratoFeesPeriodo> ddaTContratoFeesPeriodos) {
        this.ddaTContratoFeesPeriodos = ddaTContratoFeesPeriodos;
    }

@OneToMany(fetch=FetchType.LAZY, mappedBy="ddaTContratoFees")
    public Set<DdaTContratoFeesPresup> getDdaTContratoFeesPresups() {
        return this.ddaTContratoFeesPresups;
    }
    
    public void setDdaTContratoFeesPresups(Set<DdaTContratoFeesPresup> ddaTContratoFeesPresups) {
        this.ddaTContratoFeesPresups = ddaTContratoFeesPresups;
    }




}


