/*
 * 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.cosmodas.EntCosmos;

import java.io.Serializable;
import java.math.BigInteger;
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 = "TajusteS")
@XmlRootElement
@NamedQueries({
        @NamedQuery(name = "TajusteE.findAll", query = "SELECT t FROM TajusteE t")
        , @NamedQuery(name = "TajusteE.findByProductoCodigo", query = "SELECT t FROM TajusteE t WHERE t.productoCodigo = :productoCodigo")
        , @NamedQuery(name = "TajusteE.findByMultiple", query = "SELECT t FROM TajusteE t WHERE t.productoCodigo = :productoCodigo AND t.programaCodigo = :programaCodigo AND t.sucursalCodigo = :sucursalCodigo")
        , @NamedQuery(name = "TajusteE.findByCantidad", query = "SELECT t FROM TajusteE t WHERE t.cantidad = :cantidad")
        , @NamedQuery(name = "TajusteE.findByProgramaCodigo", query = "SELECT t FROM TajusteE t WHERE t.programaCodigo = :programaCodigo")
        , @NamedQuery(name = "TajusteE.findBySucursalCodigo", query = "SELECT t FROM TajusteE t WHERE t.sucursalCodigo = :sucursalCodigo")})
public class TajusteE implements Serializable {

    private static final long serialVersionUID = 1L;
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 5)
    @Column(name = "producto_codigo")
    private String productoCodigo;
    private BigInteger cantidad;
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 3)
    @Column(name = "programa_codigo")
    private String programaCodigo;
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 2)
    @Column(name = "sucursal_codigo")
    private String sucursalCodigo;
    @Id
    private Long id;

    public TajusteE() {
    }

    public String getProductoCodigo() {
        return productoCodigo;
    }

    public void setProductoCodigo(String productoCodigo) {
        this.productoCodigo = productoCodigo;
    }

    public BigInteger getCantidad() {
        return cantidad;
    }

    public void setCantidad(BigInteger cantidad) {
        this.cantidad = cantidad;
    }

    public String getProgramaCodigo() {
        return programaCodigo;
    }

    public void setProgramaCodigo(String programaCodigo) {
        this.programaCodigo = programaCodigo;
    }

    public String getSucursalCodigo() {
        return sucursalCodigo;
    }

    public void setSucursalCodigo(String sucursalCodigo) {
        this.sucursalCodigo = sucursalCodigo;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

}
