/*
 * 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 = "TremiE")
@XmlRootElement
@NamedQueries({
        @NamedQuery(name = "TremiE.findAll", query = "SELECT t FROM TremiE t")
        , @NamedQuery(name = "TremiE.findById", query = "SELECT t FROM TremiE t WHERE t.id = :id")
        , @NamedQuery(name = "TremiE.findByProductoCodigo", query = "SELECT t FROM TremiE t WHERE t.productoCodigo = :productoCodigo")
        , @NamedQuery(name = "TremiE.findByProductoMultiple", query = "SELECT t FROM TremiE t WHERE t.productoCodigo = :productoCodigo AND t.programaCodigo = :programaCodigo AND t.sucursalEntranteCodigo = :sucursalEntranteCodigo")
        , @NamedQuery(name = "TremiE.findByCantidad", query = "SELECT t FROM TremiE t WHERE t.cantidad = :cantidad")
        , @NamedQuery(name = "TremiE.findBySucursalEntranteCodigo", query = "SELECT t FROM TremiE t WHERE t.sucursalEntranteCodigo = :sucursalEntranteCodigo")
        , @NamedQuery(name = "TremiE.findByProgramaCodigo", query = "SELECT t FROM TremiE t WHERE t.programaCodigo = :programaCodigo")})
public class TremiE implements Serializable {

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

    public TremiE() {
    }

    public String getId() {
        return id;
    }

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

    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 getSucursalEntranteCodigo() {
        return sucursalEntranteCodigo;
    }

    public void setSucursalEntranteCodigo(String sucursalEntranteCodigo) {
        this.sucursalEntranteCodigo = sucursalEntranteCodigo;
    }

    public String getProgramaCodigo() {
        return programaCodigo;
    }

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

}
