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


import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

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


     private DdaTContratoPtrsCatId id;
     private DdaTContratoPtrans ddaTContratoPtrans;
     private String rsDla;
     private String rsEstudio;

    public DdaTContratoPtrsCat() {
    }

	
    public DdaTContratoPtrsCat(DdaTContratoPtrsCatId id, DdaTContratoPtrans ddaTContratoPtrans) {
        this.id = id;
        this.ddaTContratoPtrans = ddaTContratoPtrans;
    }
    public DdaTContratoPtrsCat(DdaTContratoPtrsCatId id, DdaTContratoPtrans ddaTContratoPtrans, String rsDla, String rsEstudio) {
       this.id = id;
       this.ddaTContratoPtrans = ddaTContratoPtrans;
       this.rsDla = rsDla;
       this.rsEstudio = rsEstudio;
    }
   
     @EmbeddedId

    
    @AttributeOverrides( {
        @AttributeOverride(name="idContratoPtrans", column=@Column(name="ID_CONTRATO_PTRANS", nullable=false, precision=38, scale=0) ), 
        @AttributeOverride(name="idCategoria", column=@Column(name="ID_CATEGORIA", nullable=false, precision=2, scale=0) ), 
        @AttributeOverride(name="tipoTitulo", column=@Column(name="TIPO_TITULO", nullable=false, length=8) ) } )
    public DdaTContratoPtrsCatId getId() {
        return this.id;
    }
    
    public void setId(DdaTContratoPtrsCatId id) {
        this.id = id;
    }

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

    
    @Column(name="RS_DLA", length=3)
    public String getRsDla() {
        return this.rsDla;
    }
    
    public void setRsDla(String rsDla) {
        this.rsDla = rsDla;
    }

    
    @Column(name="RS_ESTUDIO", length=3)
    public String getRsEstudio() {
        return this.rsEstudio;
    }
    
    public void setRsEstudio(String rsEstudio) {
        this.rsEstudio = rsEstudio;
    }




}


