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;

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


     private Long idMinimoSeleccion;
     private DdaTContratoPago ddaTContratoPago;
     private DdaTContratoPagoCateg ddaTContratoPagoCateg;
     private Long annio;
     private String minimoSeleccion;

    public DdaTContratoMseleccion() {
    }

	
    public DdaTContratoMseleccion(Long idMinimoSeleccion) {
        this.idMinimoSeleccion = idMinimoSeleccion;
    }
    public DdaTContratoMseleccion(Long idMinimoSeleccion, DdaTContratoPago ddaTContratoPago, DdaTContratoPagoCateg ddaTContratoPagoCateg, Long annio, String minimoSeleccion) {
       this.idMinimoSeleccion = idMinimoSeleccion;
       this.ddaTContratoPago = ddaTContratoPago;
       this.ddaTContratoPagoCateg = ddaTContratoPagoCateg;
       this.annio = annio;
       this.minimoSeleccion = minimoSeleccion;
    }
   
     @Id 

    
    @Column(name="ID_MINIMO_SELECCION", unique=true, nullable=false, precision=38, scale=0)
    public Long getIdMinimoSeleccion() {
        return this.idMinimoSeleccion;
    }
    
    public void setIdMinimoSeleccion(Long idMinimoSeleccion) {
        this.idMinimoSeleccion = idMinimoSeleccion;
    }

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

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="ID_PAGO_CATEG")
    public DdaTContratoPagoCateg getDdaTContratoPagoCateg() {
        return this.ddaTContratoPagoCateg;
    }
    
    public void setDdaTContratoPagoCateg(DdaTContratoPagoCateg ddaTContratoPagoCateg) {
        this.ddaTContratoPagoCateg = ddaTContratoPagoCateg;
    }

    
    @Column(name="ANNIO", precision=2, scale=0)
    public Long getAnnio() {
        return this.annio;
    }
    
    public void setAnnio(Long annio) {
        this.annio = annio;
    }

    
    @Column(name="MINIMO_SELECCION", length=25)
    public String getMinimoSeleccion() {
        return this.minimoSeleccion;
    }
    
    public void setMinimoSeleccion(String minimoSeleccion) {
        this.minimoSeleccion = minimoSeleccion;
    }




}


