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;

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


     private Long idContratoPtrans;
     private DdaTContrato ddaTContrato;
     private String tipoTrans;
     private String tipoTitulo;
     private String tipoAnnio;
     private String tipoMinimo;
     private Set<DdaTContratoPtrsRd> ddaTContratoPtrsRds = new HashSet<DdaTContratoPtrsRd>(0);
     private Set<DdaTContratoPtrsPrecio> ddaTContratoPtrsPrecios = new HashSet<DdaTContratoPtrsPrecio>(0);
     private Set<DdaTContratoPtAnnio> ddaTContratoPtAnnios = new HashSet<DdaTContratoPtAnnio>(0);
     private Set<DdaTContratoPtrsCat> ddaTContratoPtrsCats = new HashSet<DdaTContratoPtrsCat>(0);
     private Set<DdaTContratoPtCmg> ddaTContratoPtCmgs = new HashSet<DdaTContratoPtCmg>(0);

    public DdaTContratoPtrans() {
    }

	
    public DdaTContratoPtrans(Long idContratoPtrans) {
        this.idContratoPtrans = idContratoPtrans;
    }
    public DdaTContratoPtrans(Long idContratoPtrans, DdaTContrato ddaTContrato, String tipoTrans, String tipoTitulo, String tipoAnnio, String tipoMinimo, Set<DdaTContratoPtrsRd> ddaTContratoPtrsRds, Set<DdaTContratoPtrsPrecio> ddaTContratoPtrsPrecios, Set<DdaTContratoPtAnnio> ddaTContratoPtAnnios, Set<DdaTContratoPtrsCat> ddaTContratoPtrsCats, Set<DdaTContratoPtCmg> ddaTContratoPtCmgs) {
       this.idContratoPtrans = idContratoPtrans;
       this.ddaTContrato = ddaTContrato;
       this.tipoTrans = tipoTrans;
       this.tipoTitulo = tipoTitulo;
       this.tipoAnnio = tipoAnnio;
       this.tipoMinimo = tipoMinimo;
       this.ddaTContratoPtrsRds = ddaTContratoPtrsRds;
       this.ddaTContratoPtrsPrecios = ddaTContratoPtrsPrecios;
       this.ddaTContratoPtAnnios = ddaTContratoPtAnnios;
       this.ddaTContratoPtrsCats = ddaTContratoPtrsCats;
       this.ddaTContratoPtCmgs = ddaTContratoPtCmgs;
    }
   
     @Id 

    
    @Column(name="ID_CONTRATO_PTRANS", unique=true, nullable=false, precision=38, scale=0)
    public Long getIdContratoPtrans() {
        return this.idContratoPtrans;
    }
    
    public void setIdContratoPtrans(Long idContratoPtrans) {
        this.idContratoPtrans = idContratoPtrans;
    }

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

    
    @Column(name="TIPO_TRANS", length=5)
    public String getTipoTrans() {
        return this.tipoTrans;
    }
    
    public void setTipoTrans(String tipoTrans) {
        this.tipoTrans = tipoTrans;
    }

    
    @Column(name="TIPO_TITULO", length=8)
    public String getTipoTitulo() {
        return this.tipoTitulo;
    }
    
    public void setTipoTitulo(String tipoTitulo) {
        this.tipoTitulo = tipoTitulo;
    }

    
    @Column(name="TIPO_ANNIO", length=12)
    public String getTipoAnnio() {
        return this.tipoAnnio;
    }
    
    public void setTipoAnnio(String tipoAnnio) {
        this.tipoAnnio = tipoAnnio;
    }

    
    @Column(name="TIPO_MINIMO", length=9)
    public String getTipoMinimo() {
        return this.tipoMinimo;
    }
    
    public void setTipoMinimo(String tipoMinimo) {
        this.tipoMinimo = tipoMinimo;
    }

@OneToMany(fetch=FetchType.LAZY, mappedBy="ddaTContratoPtrans")
    public Set<DdaTContratoPtrsRd> getDdaTContratoPtrsRds() {
        return this.ddaTContratoPtrsRds;
    }
    
    public void setDdaTContratoPtrsRds(Set<DdaTContratoPtrsRd> ddaTContratoPtrsRds) {
        this.ddaTContratoPtrsRds = ddaTContratoPtrsRds;
    }

@OneToMany(fetch=FetchType.LAZY, mappedBy="ddaTContratoPtrans")
    public Set<DdaTContratoPtrsPrecio> getDdaTContratoPtrsPrecios() {
        return this.ddaTContratoPtrsPrecios;
    }
    
    public void setDdaTContratoPtrsPrecios(Set<DdaTContratoPtrsPrecio> ddaTContratoPtrsPrecios) {
        this.ddaTContratoPtrsPrecios = ddaTContratoPtrsPrecios;
    }

@OneToMany(fetch=FetchType.LAZY, mappedBy="ddaTContratoPtrans")
    public Set<DdaTContratoPtAnnio> getDdaTContratoPtAnnios() {
        return this.ddaTContratoPtAnnios;
    }
    
    public void setDdaTContratoPtAnnios(Set<DdaTContratoPtAnnio> ddaTContratoPtAnnios) {
        this.ddaTContratoPtAnnios = ddaTContratoPtAnnios;
    }

@OneToMany(fetch=FetchType.LAZY, mappedBy="ddaTContratoPtrans")
    public Set<DdaTContratoPtrsCat> getDdaTContratoPtrsCats() {
        return this.ddaTContratoPtrsCats;
    }
    
    public void setDdaTContratoPtrsCats(Set<DdaTContratoPtrsCat> ddaTContratoPtrsCats) {
        this.ddaTContratoPtrsCats = ddaTContratoPtrsCats;
    }

@OneToMany(fetch=FetchType.LAZY, mappedBy="ddaTContratoPtrans")
    public Set<DdaTContratoPtCmg> getDdaTContratoPtCmgs() {
        return this.ddaTContratoPtCmgs;
    }
    
    public void setDdaTContratoPtCmgs(Set<DdaTContratoPtCmg> ddaTContratoPtCmgs) {
        this.ddaTContratoPtCmgs = ddaTContratoPtCmgs;
    }




}


