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


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;

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


     private Long idBonoRango;
     private DdaTContrato ddaTContrato;
     private String desde;
     private String hasta;
     private String bono;
     private String tipoPago;

    public DdaTContratoBonoRango() {
    }

	
    public DdaTContratoBonoRango(Long idBonoRango) {
        this.idBonoRango = idBonoRango;
    }
    public DdaTContratoBonoRango(Long idBonoRango, DdaTContrato ddaTContrato, String desde, String hasta, String bono, String tipoPago) {
       this.idBonoRango = idBonoRango;
       this.ddaTContrato = ddaTContrato;
       this.desde = desde;
       this.hasta = hasta;
       this.bono = bono;
       this.tipoPago = tipoPago;
    }
   
     @Id 

    
    @Column(name="ID_BONO_RANGO", unique=true, nullable=false, precision=38, scale=0)
    public Long getIdBonoRango() {
        return this.idBonoRango;
    }
    
    public void setIdBonoRango(Long idBonoRango) {
        this.idBonoRango = idBonoRango;
    }

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

    
    @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;
    }

    
    @Column(name="BONO", length=10)
    public String getBono() {
        return this.bono;
    }
    
    public void setBono(String bono) {
        this.bono = bono;
    }

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




}


