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;

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


     private DdaTFacturaDetalleId id;
     private DdaTFactura ddaTFactura;
     private String montoPagar;

    public DdaTFacturaDetalle() {
    }

	
    public DdaTFacturaDetalle(DdaTFacturaDetalleId id, DdaTFactura ddaTFactura) {
        this.id = id;
        this.ddaTFactura = ddaTFactura;
    }
    public DdaTFacturaDetalle(DdaTFacturaDetalleId id, DdaTFactura ddaTFactura, String montoPagar) {
       this.id = id;
       this.ddaTFactura = ddaTFactura;
       this.montoPagar = montoPagar;
    }
   
     @EmbeddedId

    
    @AttributeOverrides( {
        @AttributeOverride(name="idFactura", column=@Column(name="ID_FACTURA", nullable=false, precision=38, scale=0) ), 
        @AttributeOverride(name="mes", column=@Column(name="MES", nullable=false, length=7) ), 
        @AttributeOverride(name="idContratoOriginal", column=@Column(name="ID_CONTRATO_ORIGINAL", nullable=false, precision=38, scale=0) ) } )
    public DdaTFacturaDetalleId getId() {
        return this.id;
    }
    
    public void setId(DdaTFacturaDetalleId id) {
        this.id = id;
    }

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="ID_FACTURA", nullable=false, insertable=false, updatable=false)
    public DdaTFactura getDdaTFactura() {
        return this.ddaTFactura;
    }
    
    public void setDdaTFactura(DdaTFactura ddaTFactura) {
        this.ddaTFactura = ddaTFactura;
    }

    
    @Column(name="MONTO_PAGAR", length=25)
    public String getMontoPagar() {
        return this.montoPagar;
    }
    
    public void setMontoPagar(String montoPagar) {
        this.montoPagar = montoPagar;
    }




}


