/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.contabilidad.EntConta;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author obper
 */
@Entity
@Table(name = "vEmpleados_eventuales")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "VEmpleadoseventuales.findAll", query = "SELECT v FROM VEmpleadoseventuales v")
    , @NamedQuery(name = "VEmpleadoseventuales.findByCodigoEmpleado", query = "SELECT v FROM VEmpleadoseventuales v WHERE v.codigoEmpleado = :codigoEmpleado")
    , @NamedQuery(name = "VEmpleadoseventuales.findByEmpleado", query = "SELECT v FROM VEmpleadoseventuales v WHERE v.empleado = :empleado")})
public class VEmpleadoseventuales implements Serializable {

    private static final long serialVersionUID = 1L;
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 3)
    @Column(name = "codigo_empleado")
    @Id
    private String codigoEmpleado;
    @Size(max = 61)
    @Column(name = "empleado")
    private String empleado;

    public VEmpleadoseventuales() {
    }

    public String getCodigoEmpleado() {
        return codigoEmpleado;
    }

    public void setCodigoEmpleado(String codigoEmpleado) {
        this.codigoEmpleado = codigoEmpleado;
    }

    public String getEmpleado() {
        return empleado;
    }

    public void setEmpleado(String empleado) {
        this.empleado = empleado;
    }
    
}
