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.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

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


     private Long idPagoRango;
     private DdaTContratoPago ddaTContratoPago;
     private String desde;
     private String hasta;
     private Set<DdaTContratoPagoCosto> ddaTContratoPagoCostos = new HashSet<DdaTContratoPagoCosto>(0);

    public DdaTContratoPagoRango() {
    }

	
    public DdaTContratoPagoRango(Long idPagoRango) {
        this.idPagoRango = idPagoRango;
    }
    public DdaTContratoPagoRango(Long idPagoRango, DdaTContratoPago ddaTContratoPago, String desde, String hasta, Set<DdaTContratoPagoCosto> ddaTContratoPagoCostos) {
       this.idPagoRango = idPagoRango;
       this.ddaTContratoPago = ddaTContratoPago;
       this.desde = desde;
       this.hasta = hasta;
       this.ddaTContratoPagoCostos = ddaTContratoPagoCostos;
    }
   
     @Id 

    
    @Column(name="ID_PAGO_RANGO", unique=true, nullable=false, precision=38, scale=0)
    public Long getIdPagoRango() {
        return this.idPagoRango;
    }
    
    public void setIdPagoRango(Long idPagoRango) {
        this.idPagoRango = idPagoRango;
    }

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="ID_CONTRATO_PAGO")
    public DdaTContratoPago getDdaTContratoPago() {
        return this.ddaTContratoPago;
    }
    
    public void setDdaTContratoPago(DdaTContratoPago ddaTContratoPago) {
        this.ddaTContratoPago = ddaTContratoPago;
    }

    
    @Column(name="DESDE", length=10)
    public String getDesde() {
        return this.desde;
    }
    
    public void setDesde(String desde) {
        this.desde = desde;
    }

    
    @Column(name="HASTA", length=10)
    public String getHasta() {
        return this.hasta;
    }
    
    public void setHasta(String hasta) {
        this.hasta = hasta;
    }

@OneToMany(fetch=FetchType.LAZY, mappedBy="ddaTContratoPagoRango")
    public Set<DdaTContratoPagoCosto> getDdaTContratoPagoCostos() {
        return this.ddaTContratoPagoCostos;
    }
    
    public void setDdaTContratoPagoCostos(Set<DdaTContratoPagoCosto> ddaTContratoPagoCostos) {
        this.ddaTContratoPagoCostos = ddaTContratoPagoCostos;
    }




}


