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;

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


     private Long idPtcmg;
     private DdaTContratoPtrans ddaTContratoPtrans;
     private Long idCategoria;
     private String annio;
     private String minimo;

    public DdaTContratoPtCmg() {
    }

	
    public DdaTContratoPtCmg(Long idPtcmg) {
        this.idPtcmg = idPtcmg;
    }
    public DdaTContratoPtCmg(Long idPtcmg, DdaTContratoPtrans ddaTContratoPtrans, Long idCategoria, String annio, String minimo) {
       this.idPtcmg = idPtcmg;
       this.ddaTContratoPtrans = ddaTContratoPtrans;
       this.idCategoria = idCategoria;
       this.annio = annio;
       this.minimo = minimo;
    }
   
     @Id 

    
    @Column(name="ID_PTCMG", unique=true, nullable=false, precision=38, scale=0)
    public Long getIdPtcmg() {
        return this.idPtcmg;
    }
    
    public void setIdPtcmg(Long idPtcmg) {
        this.idPtcmg = idPtcmg;
    }

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="ID_CONTRATO_PTRANS")
    public DdaTContratoPtrans getDdaTContratoPtrans() {
        return this.ddaTContratoPtrans;
    }
    
    public void setDdaTContratoPtrans(DdaTContratoPtrans ddaTContratoPtrans) {
        this.ddaTContratoPtrans = ddaTContratoPtrans;
    }

    
    @Column(name="ID_CATEGORIA", precision=2, scale=0)
    public Long getIdCategoria() {
        return this.idCategoria;
    }
    
    public void setIdCategoria(Long idCategoria) {
        this.idCategoria = idCategoria;
    }

    
    @Column(name="ANNIO", length=2)
    public String getAnnio() {
        return this.annio;
    }
    
    public void setAnnio(String annio) {
        this.annio = annio;
    }

    
    @Column(name="MINIMO", length=25)
    public String getMinimo() {
        return this.minimo;
    }
    
    public void setMinimo(String minimo) {
        this.minimo = minimo;
    }




}


