package com.rjconsultores.ventaboletos.entidad;

import java.io.Serializable;
import java.util.Date;

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;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@SequenceGenerator(name = "GP_PRICING_HISTORICO_SEQ", sequenceName = "GP_PRICING_HISTORICO_SEQ", allocationSize = 1)
@Table(name = "GP_PRICING_HISTORICO")
public class GP_PricingHistorico implements Serializable {

	private static final long serialVersionUID = 1L;
	
	@Id
	@Basic(optional = false)
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "GP_PRICING_HISTORICO_SEQ")
	@Column(name = "PRICINGHISTORICO_ID")
	private Long pricingHistoricoId;
	
	@Column(name = "PRICING_ID")
	private Long pricingId;
	
	@Column(name = "ISESPECIFICO")
	private Boolean isEspecifico;
	
	@Column(name = "DESCRICAO")
	private String descricao;
	
	@Column(name = "VALORANTERIOR")
	private String valorAnterior;
	
	@Column(name = "VALORNOVO")
	private String valorNovo;
	
	@Column(name = "CAMPOALTERADO")
	private String campoAlterado;
	
	@Column(name = "CLASSEALTERADA")
	private String classeAlterada;
	
	@Column(name = "CLASSEPRINCIPAL")
	private String classePrincipal;
	
	@Column(name = "FECMODIF")
	@Temporal(TemporalType.TIMESTAMP)
	private Date fecmodif;
	
	@Column(name = "USUARIO_ID")
	private Integer usuarioId;

	public Long getPricingHistoricoId() {
		return pricingHistoricoId;
	}

	public void setPricingHistoricoId(Long pricingHistoricoId) {
		this.pricingHistoricoId = pricingHistoricoId;
	}

	public Long getPricingId() {
		return pricingId;
	}

	public void setPricingId(Long pricingId) {
		this.pricingId = pricingId;
	}

	public Boolean getIsEspecifico() {
		return isEspecifico == null ? false : isEspecifico;
	}

	public void setIsEspecifico(Boolean isEspecifico) {
		this.isEspecifico = isEspecifico;
	}

	public String getDescricao() {
		return descricao;
	}

	public void setDescricao(String descricao) {
		this.descricao = descricao;
	}

	public String getValorAnterior() {
		return valorAnterior;
	}

	public void setValorAnterior(String valorAnterior) {
		this.valorAnterior = valorAnterior;
	}

	public String getValorNovo() {
		return valorNovo;
	}

	public void setValorNovo(String valorNovo) {
		this.valorNovo = valorNovo;
	}

	public String getCampoAlterado() {
		return campoAlterado;
	}

	public void setCampoAlterado(String campoAlterado) {
		this.campoAlterado = campoAlterado;
	}

	public String getClasseAlterada() {
		return classeAlterada;
	}

	public void setClasseAlterada(String classeAlterada) {
		this.classeAlterada = classeAlterada;
	}

	public Date getFecmodif() {
		return fecmodif;
	}

	public void setFecmodif(Date fecmodif) {
		this.fecmodif = fecmodif;
	}

	public Integer getUsuarioId() {
		return usuarioId;
	}

	public void setUsuarioId(Integer usuarioId) {
		this.usuarioId = usuarioId;
	}

	public String getClassePrincipal() {
		return classePrincipal;
	}

	public void setClassePrincipal(String classePrincipal) {
		this.classePrincipal = classePrincipal;
	}
}
