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 java.util.HashSet;
import java.util.Set;
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.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

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


     private Long idContratoPago;
     private DdaTContrato ddaTContrato;
     private Integer idTipoSuscriptor;
     private String tipoPago;
     private String tipoAnnio;
     private Date fechaInicio;
     private Date fechaFin;
     private Set<DdaTCostoTitulo> ddaTCostoTitulos = new HashSet<DdaTCostoTitulo>(0);
     private Set<DdaTContratoPagoRango> ddaTContratoPagoRangos = new HashSet<DdaTContratoPagoRango>(0);
     private Set<DdaTContratoPagoCateg> ddaTContratoPagoCategs = new HashSet<DdaTContratoPagoCateg>(0);
     private Set<DdaTContratoMseleccion> ddaTContratoMseleccions = new HashSet<DdaTContratoMseleccion>(0);
     private Set<DdaTContratoPagoFlat> ddaTContratoPagoFlats = new HashSet<DdaTContratoPagoFlat>(0);

    public DdaTContratoPago() {
    }

	
    public DdaTContratoPago(Long idContratoPago) {
        this.idContratoPago = idContratoPago;
    }
    public DdaTContratoPago(Long idContratoPago, DdaTContrato ddaTContrato, Integer idTipoSuscriptor, String tipoPago, String tipoAnnio, Date fechaInicio, Date fechaFin, Set<DdaTCostoTitulo> ddaTCostoTitulos, Set<DdaTContratoPagoRango> ddaTContratoPagoRangos, Set<DdaTContratoPagoCateg> ddaTContratoPagoCategs, Set<DdaTContratoMseleccion> ddaTContratoMseleccions, Set<DdaTContratoPagoFlat> ddaTContratoPagoFlats) {
       this.idContratoPago = idContratoPago;
       this.ddaTContrato = ddaTContrato;
       this.idTipoSuscriptor = idTipoSuscriptor;
       this.tipoPago = tipoPago;
       this.tipoAnnio = tipoAnnio;
       this.fechaInicio = fechaInicio;
       this.fechaFin = fechaFin;
       this.ddaTCostoTitulos = ddaTCostoTitulos;
       this.ddaTContratoPagoRangos = ddaTContratoPagoRangos;
       this.ddaTContratoPagoCategs = ddaTContratoPagoCategs;
       this.ddaTContratoMseleccions = ddaTContratoMseleccions;
       this.ddaTContratoPagoFlats = ddaTContratoPagoFlats;
    }
   
     @Id 

    
    @Column(name="ID_CONTRATO_PAGO", unique=true, nullable=false, precision=38, scale=0)
    public Long getIdContratoPago() {
        return this.idContratoPago;
    }
    
    public void setIdContratoPago(Long idContratoPago) {
        this.idContratoPago = idContratoPago;
    }

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

    
    @Column(name="ID_TIPO_SUSCRIPTOR", precision=1, scale=0)
    public Integer getIdTipoSuscriptor() {
        return this.idTipoSuscriptor;
    }
    
    public void setIdTipoSuscriptor(Integer idTipoSuscriptor) {
        this.idTipoSuscriptor = idTipoSuscriptor;
    }

    
    @Column(name="TIPO_PAGO", length=6)
    public String getTipoPago() {
        return this.tipoPago;
    }
    
    public void setTipoPago(String tipoPago) {
        this.tipoPago = tipoPago;
    }

    
    @Column(name="TIPO_ANNIO", length=12)
    public String getTipoAnnio() {
        return this.tipoAnnio;
    }
    
    public void setTipoAnnio(String tipoAnnio) {
        this.tipoAnnio = tipoAnnio;
    }

    @Temporal(TemporalType.DATE)
    @Column(name="FECHA_INICIO", length=7)
    public Date getFechaInicio() {
        return this.fechaInicio;
    }
    
    public void setFechaInicio(Date fechaInicio) {
        this.fechaInicio = fechaInicio;
    }

    @Temporal(TemporalType.DATE)
    @Column(name="FECHA_FIN", length=7)
    public Date getFechaFin() {
        return this.fechaFin;
    }
    
    public void setFechaFin(Date fechaFin) {
        this.fechaFin = fechaFin;
    }

@OneToMany(fetch=FetchType.LAZY, mappedBy="ddaTContratoPago")
    public Set<DdaTCostoTitulo> getDdaTCostoTitulos() {
        return this.ddaTCostoTitulos;
    }
    
    public void setDdaTCostoTitulos(Set<DdaTCostoTitulo> ddaTCostoTitulos) {
        this.ddaTCostoTitulos = ddaTCostoTitulos;
    }

@OneToMany(fetch=FetchType.LAZY, mappedBy="ddaTContratoPago")
    public Set<DdaTContratoPagoRango> getDdaTContratoPagoRangos() {
        return this.ddaTContratoPagoRangos;
    }
    
    public void setDdaTContratoPagoRangos(Set<DdaTContratoPagoRango> ddaTContratoPagoRangos) {
        this.ddaTContratoPagoRangos = ddaTContratoPagoRangos;
    }

@OneToMany(fetch=FetchType.LAZY, mappedBy="ddaTContratoPago")
    public Set<DdaTContratoPagoCateg> getDdaTContratoPagoCategs() {
        return this.ddaTContratoPagoCategs;
    }
    
    public void setDdaTContratoPagoCategs(Set<DdaTContratoPagoCateg> ddaTContratoPagoCategs) {
        this.ddaTContratoPagoCategs = ddaTContratoPagoCategs;
    }

@OneToMany(fetch=FetchType.LAZY, mappedBy="ddaTContratoPago")
    public Set<DdaTContratoMseleccion> getDdaTContratoMseleccions() {
        return this.ddaTContratoMseleccions;
    }
    
    public void setDdaTContratoMseleccions(Set<DdaTContratoMseleccion> ddaTContratoMseleccions) {
        this.ddaTContratoMseleccions = ddaTContratoMseleccions;
    }

@OneToMany(fetch=FetchType.LAZY, mappedBy="ddaTContratoPago")
    public Set<DdaTContratoPagoFlat> getDdaTContratoPagoFlats() {
        return this.ddaTContratoPagoFlats;
    }
    
    public void setDdaTContratoPagoFlats(Set<DdaTContratoPagoFlat> ddaTContratoPagoFlats) {
        this.ddaTContratoPagoFlats = ddaTContratoPagoFlats;
    }




}


