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.OneToMany;
import javax.persistence.Table;

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


     private byte idArea;
     private String descArea;
     private Integer autorizaContrato;
     private Long orden;
     private Set<DlaCUsuario> dlaCUsuarios = new HashSet<DlaCUsuario>(0);

    public DdaCArea() {
    }

	
    public DdaCArea(byte idArea) {
        this.idArea = idArea;
    }
    public DdaCArea(byte idArea, String descArea, Integer autorizaContrato, Long orden, Set<DlaCUsuario> dlaCUsuarios) {
       this.idArea = idArea;
       this.descArea = descArea;
       this.autorizaContrato = autorizaContrato;
       this.orden = orden;
       this.dlaCUsuarios = dlaCUsuarios;
    }
   
     @Id 

    
    @Column(name="ID_AREA", unique=true, nullable=false, precision=2, scale=0)
    public byte getIdArea() {
        return this.idArea;
    }
    
    public void setIdArea(byte idArea) {
        this.idArea = idArea;
    }

    
    @Column(name="DESC_AREA", length=25)
    public String getDescArea() {
        return this.descArea;
    }
    
    public void setDescArea(String descArea) {
        this.descArea = descArea;
    }

    
    @Column(name="AUTORIZA_CONTRATO", precision=1, scale=0)
    public Integer getAutorizaContrato() {
        return this.autorizaContrato;
    }
    
    public void setAutorizaContrato(Integer autorizaContrato) {
        this.autorizaContrato = autorizaContrato;
    }

    
    @Column(name="ORDEN", precision=2, scale=0)
    public Long getOrden() {
        return this.orden;
    }
    
    public void setOrden(Long orden) {
        this.orden = orden;
    }

@OneToMany(fetch=FetchType.LAZY, mappedBy="ddaCArea")
    public Set<DlaCUsuario> getDlaCUsuarios() {
        return this.dlaCUsuarios;
    }
    
    public void setDlaCUsuarios(Set<DlaCUsuario> dlaCUsuarios) {
        this.dlaCUsuarios = dlaCUsuarios;
    }




}


