139 lines
3.0 KiB
Java
139 lines
3.0 KiB
Java
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.JoinColumn;
|
|
import javax.persistence.OneToOne;
|
|
import javax.persistence.SequenceGenerator;
|
|
import javax.persistence.Table;
|
|
import javax.persistence.Temporal;
|
|
import javax.persistence.TemporalType;
|
|
|
|
@Entity
|
|
@SequenceGenerator(name = "EMPRESA_SICFE_CONFIG_SEQ", sequenceName = "EMPRESA_SICFE_CONFIG_SEQ", allocationSize = 1)
|
|
@Table(name = "EMPRESA_SICFE_CONFIG")
|
|
public class EmpresaSicfeConfig implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
@Id
|
|
@Basic(optional = false)
|
|
@GeneratedValue(strategy = GenerationType.AUTO, generator = "EMPRESA_SICFE_CONFIG_SEQ")
|
|
@Column(name = "EMPRESASICFECONFIG_ID")
|
|
private Integer empresaSicfeConfigId;
|
|
@OneToOne
|
|
@JoinColumn(name = "EMPRESA_ID")
|
|
private Empresa empresa;
|
|
|
|
@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 EmpresaSicfeConfig() {
|
|
|
|
}
|
|
|
|
public Integer getEmpresaSicfeConfigId() {
|
|
return empresaSicfeConfigId;
|
|
}
|
|
|
|
public void setEmpresaSicfeConfigId(Integer empresaSicfeConfigId) {
|
|
this.empresaSicfeConfigId = empresaSicfeConfigId;
|
|
}
|
|
|
|
public Empresa getEmpresa() {
|
|
return empresa;
|
|
}
|
|
|
|
public void setEmpresa(Empresa empresa) {
|
|
this.empresa = empresa;
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
final int prime = 31;
|
|
int result = 1;
|
|
result = prime * result + ((empresaSicfeConfigId == null) ? 0 : empresaSicfeConfigId.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;
|
|
EmpresaSicfeConfig other = (EmpresaSicfeConfig) obj;
|
|
if (empresaSicfeConfigId == null) {
|
|
if (other.empresaSicfeConfigId != null)
|
|
return false;
|
|
} else if (!empresaSicfeConfigId.equals(other.empresaSicfeConfigId))
|
|
return false;
|
|
return true;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return String.valueOf(this.getEmpresaSicfeConfigId());
|
|
}
|
|
|
|
}
|