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;

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


     private DdaTContratoPtAnnioId id;
     private DdaTContratoPtrans ddaTContratoPtrans;
     private String titulos;
     private String precio;
     private String minimo;

    public DdaTContratoPtAnnio() {
    }

	
    public DdaTContratoPtAnnio(DdaTContratoPtAnnioId id, DdaTContratoPtrans ddaTContratoPtrans) {
        this.id = id;
        this.ddaTContratoPtrans = ddaTContratoPtrans;
    }
    public DdaTContratoPtAnnio(DdaTContratoPtAnnioId id, DdaTContratoPtrans ddaTContratoPtrans, String titulos, String precio, String minimo) {
       this.id = id;
       this.ddaTContratoPtrans = ddaTContratoPtrans;
       this.titulos = titulos;
       this.precio = precio;
       this.minimo = minimo;
    }
   
     @EmbeddedId

    
    @AttributeOverrides( {
        @AttributeOverride(name="idContratoPtrans", column=@Column(name="ID_CONTRATO_PTRANS", nullable=false, precision=38, scale=0) ), 
        @AttributeOverride(name="annio", column=@Column(name="ANNIO", nullable=false, length=2) ) } )
    public DdaTContratoPtAnnioId getId() {
        return this.id;
    }
    
    public void setId(DdaTContratoPtAnnioId 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="TITULOS", length=10)
    public String getTitulos() {
        return this.titulos;
    }
    
    public void setTitulos(String titulos) {
        this.titulos = titulos;
    }

    
    @Column(name="PRECIO", length=25)
    public String getPrecio() {
        return this.precio;
    }
    
    public void setPrecio(String precio) {
        this.precio = precio;
    }

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




}


