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


import java.util.Date;
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.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

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


     private Long idFactura;
     private String noFactura;
     private Date fecha;
     private String monto;
     private Integer sharepoint;
     private Integer approved;
     private Integer sap;
     private String idSapRegistro;
     private String idSapPagada;
     private String paid;
     private String due;
     private String comentario;
     private Long idEstudio;
     private Set<DdaTFacturaDetalle> ddaTFacturaDetalles = new HashSet<DdaTFacturaDetalle>(0);

    public DdaTFactura() {
    }

	
    public DdaTFactura(Long idFactura) {
        this.idFactura = idFactura;
    }
    public DdaTFactura(Long idFactura, String noFactura, Date fecha, String monto, Integer sharepoint, Integer approved, Integer sap, String idSapRegistro, String idSapPagada, String paid, String due, String comentario, Long idEstudio, Set<DdaTFacturaDetalle> ddaTFacturaDetalles) {
       this.idFactura = idFactura;
       this.noFactura = noFactura;
       this.fecha = fecha;
       this.monto = monto;
       this.sharepoint = sharepoint;
       this.approved = approved;
       this.sap = sap;
       this.idSapRegistro = idSapRegistro;
       this.idSapPagada = idSapPagada;
       this.paid = paid;
       this.due = due;
       this.comentario = comentario;
       this.idEstudio = idEstudio;
       this.ddaTFacturaDetalles = ddaTFacturaDetalles;
    }
   
     @Id 

    
    @Column(name="ID_FACTURA", unique=true, nullable=false, precision=38, scale=0)
    public Long getIdFactura() {
        return this.idFactura;
    }
    
    public void setIdFactura(Long idFactura) {
        this.idFactura = idFactura;
    }

    
    @Column(name="NO_FACTURA", length=25)
    public String getNoFactura() {
        return this.noFactura;
    }
    
    public void setNoFactura(String noFactura) {
        this.noFactura = noFactura;
    }

    @Temporal(TemporalType.DATE)
    @Column(name="FECHA", length=7)
    public Date getFecha() {
        return this.fecha;
    }
    
    public void setFecha(Date fecha) {
        this.fecha = fecha;
    }

    
    @Column(name="MONTO", length=25)
    public String getMonto() {
        return this.monto;
    }
    
    public void setMonto(String monto) {
        this.monto = monto;
    }

    
    @Column(name="SHAREPOINT", precision=1, scale=0)
    public Integer getSharepoint() {
        return this.sharepoint;
    }
    
    public void setSharepoint(Integer sharepoint) {
        this.sharepoint = sharepoint;
    }

    
    @Column(name="APPROVED", precision=1, scale=0)
    public Integer getApproved() {
        return this.approved;
    }
    
    public void setApproved(Integer approved) {
        this.approved = approved;
    }

    
    @Column(name="SAP", precision=1, scale=0)
    public Integer getSap() {
        return this.sap;
    }
    
    public void setSap(Integer sap) {
        this.sap = sap;
    }

    
    @Column(name="ID_SAP_REGISTRO", length=15)
    public String getIdSapRegistro() {
        return this.idSapRegistro;
    }
    
    public void setIdSapRegistro(String idSapRegistro) {
        this.idSapRegistro = idSapRegistro;
    }

    
    @Column(name="ID_SAP_PAGADA", length=15)
    public String getIdSapPagada() {
        return this.idSapPagada;
    }
    
    public void setIdSapPagada(String idSapPagada) {
        this.idSapPagada = idSapPagada;
    }

    
    @Column(name="PAID", length=25)
    public String getPaid() {
        return this.paid;
    }
    
    public void setPaid(String paid) {
        this.paid = paid;
    }

    
    @Column(name="DUE", length=25)
    public String getDue() {
        return this.due;
    }
    
    public void setDue(String due) {
        this.due = due;
    }

    
    @Column(name="COMENTARIO", length=250)
    public String getComentario() {
        return this.comentario;
    }
    
    public void setComentario(String comentario) {
        this.comentario = comentario;
    }

    
    @Column(name="ID_ESTUDIO", precision=38, scale=0)
    public Long getIdEstudio() {
        return this.idEstudio;
    }
    
    public void setIdEstudio(Long idEstudio) {
        this.idEstudio = idEstudio;
    }

@OneToMany(fetch=FetchType.LAZY, mappedBy="ddaTFactura")
    public Set<DdaTFacturaDetalle> getDdaTFacturaDetalles() {
        return this.ddaTFacturaDetalles;
    }
    
    public void setDdaTFacturaDetalles(Set<DdaTFacturaDetalle> ddaTFacturaDetalles) {
        this.ddaTFacturaDetalles = ddaTFacturaDetalles;
    }




}


