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.Table;

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


     private DdaTTransaccionSapId id;
     private String idSap;
     private String docMaterial;
     private String annio;

    public DdaTTransaccionSap() {
    }

	
    public DdaTTransaccionSap(DdaTTransaccionSapId id, String idSap) {
        this.id = id;
        this.idSap = idSap;
    }
    public DdaTTransaccionSap(DdaTTransaccionSapId id, String idSap, String docMaterial, String annio) {
       this.id = id;
       this.idSap = idSap;
       this.docMaterial = docMaterial;
       this.annio = annio;
    }
   
     @EmbeddedId

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

    
    @Column(name="ID_SAP", nullable=false, length=30)
    public String getIdSap() {
        return this.idSap;
    }
    
    public void setIdSap(String idSap) {
        this.idSap = idSap;
    }

    
    @Column(name="DOC_MATERIAL", length=25)
    public String getDocMaterial() {
        return this.docMaterial;
    }
    
    public void setDocMaterial(String docMaterial) {
        this.docMaterial = docMaterial;
    }

    
    @Column(name="ANNIO", length=4)
    public String getAnnio() {
        return this.annio;
    }
    
    public void setAnnio(String annio) {
        this.annio = annio;
    }




}


