package com.rjconsultores.ventaboletos.entidad;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@SequenceGenerator(name = "PARAM_ARTICULO_SEQ", sequenceName = "PARAM_ARTICULO_SEQ", allocationSize = 1)
@Table(name = "PARAM_ARTICULO")
public class ParamArticulo implements Serializable{
	
	private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO, generator = "PARAM_ARTICULO_SEQ")
    @Basic(optional = false)
    @Column(name = "PARAMARTICULO_ID")
    private Integer paramArticuloID;
    @Column(name = "CONCEPTO")
    private String concepto;
    @Column(name = "ARTICULO")
    private String articulo;
    
	public Integer getParamArticuloID() {
		return paramArticuloID;
	}
	public void setParamArticuloID(Integer paramArticuloID) {
		this.paramArticuloID = paramArticuloID;
	}
	public String getConcepto() {
		return concepto;
	}
	public void setConcepto(String concepto) {
		this.concepto = concepto;
	}
	public String getArticulo() {
		return articulo;
	}
	public void setArticulo(String articulo) {
		this.articulo = articulo;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((paramArticuloID == null) ? 0 : paramArticuloID.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ParamArticulo other = (ParamArticulo) obj;
		if (paramArticuloID == null) {
			if (other.paramArticuloID != null)
				return false;
		} else if (!paramArticuloID.equals(other.paramArticuloID))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return this.getParamArticuloID() + " - " + this.getConcepto();
	}
    
       

}
