AdmMono/src/com/rjconsultores/ventaboletos/entidad/Custom.java

168 lines
3.4 KiB
Java

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
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;
/**
*
* @author Lucas
*/
@Entity
@SequenceGenerator(name = "CUSTOM_SEQ", sequenceName = "CUSTOM_SEQ", allocationSize = 1)
@Table(name = "CUSTOM")
public class Custom implements Serializable {
public static final Integer TIPO_SISTEMA_CLIENTE = 1;
public static final Integer TIPO_SISTEMA_SERVIDOR = 2;
public static final Integer TIPO_SISTEMA_ADM = 3;
private static final long serialVersionUID = 1L;
@Id
@Basic(optional = false)
@GeneratedValue(strategy = GenerationType.AUTO, generator = "CUSTOM_SEQ")
@Column(name = "CUSTOM_ID")
private Integer customId;
@Column(name = "SISTEMA")
private Integer sistema;
@Column(name = "TIPO")
private Integer tipo;
@Column(name = "ORDEM")
private Integer ordem;
@Column(name = "REFERENCIA")
private String referencia;
@Column(name = "CHAVE")
private String chave;
@Column(name = "VALOR")
private String valor;
@Column(name = "ACTIVO")
private Boolean activo;
@Column(name = "FECMODIF")
@Temporal(TemporalType.TIMESTAMP)
private Date fecmodif;
@Column(name = "USUARIO_ID")
private Integer usuarioId;
public Custom() {
}
public Integer getCustomId() {
return customId;
}
public void setCustomId(Integer customId) {
this.customId = customId;
}
public Integer getSistema() {
return sistema;
}
public void setSistema(Integer sistema) {
this.sistema = sistema;
}
public Integer getTipo() {
return tipo;
}
public void setTipo(Integer tipo) {
this.tipo = tipo;
}
public Integer getOrdem() {
return ordem;
}
public void setOrdem(Integer ordem) {
this.ordem = ordem;
}
public String getReferencia() {
return referencia;
}
public void setReferencia(String referencia) {
this.referencia = referencia;
}
public String getChave() {
return chave;
}
public void setChave(String chave) {
this.chave = chave;
}
public String getValor() {
return valor;
}
public void setValor(String valor) {
this.valor = valor;
}
public Boolean getActivo() {
return activo;
}
public void setActivo(Boolean activo) {
this.activo = activo;
}
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;
}
@Override
public int hashCode() {
int hash = 0;
hash += (customId != null ? customId.hashCode() : 0);
return hash;
}
@Override
public boolean equals(Object object) {
if (!(object instanceof Custom)) {
return false;
}
Custom other = (Custom) object;
if ((this.customId == null && other.customId != null) || (this.customId != null && !this.customId.equals(other.customId))) {
return false;
}
return true;
}
@Override
public String toString() {
return "com.rjconsultores.ventaboletos.entidad.Custom[customId=" + customId + "]";
}
}