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

146 lines
3.5 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_ADYEN_CONFIG_SEQ", sequenceName = "EMPRESA_ADYEN_CONFIG_SEQ", allocationSize = 1)
@Table(name = "EMPRESA_ADYEN_CONFIG")
public class EmpresaAdyenConfig implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Basic(optional = false)
@GeneratedValue(strategy = GenerationType.AUTO, generator = "EMPRESA_ADYEN_CONFIG_SEQ")
@Column(name = "EMPRESAADYENCONFIG_ID")
private Integer empresaAdyenConfigId;
@OneToOne
@JoinColumn(name = "EMPRESA_ID")
private Empresa empresa;
@Column(name = "APIKEY")
private String apiKey;
@Column(name = "INDPRODUCAO")
private Boolean indProducao;
@Column(name = "MERCHANTACCOUNTADYEN")
private String merchantAccountAdyen;
@Column(name = "ACTIVO")
private Boolean activo;
@Column(name = "FECMODIF")
@Temporal(TemporalType.TIMESTAMP)
private Date fecmodif;
@Column(name = "USUARIO_ID")
private Integer usuarioId;
public EmpresaAdyenConfig() {
}
public Integer getEmpresaAdyenConfigId() {
return empresaAdyenConfigId;
}
public void setEmpresaAdyenConfigId(Integer empresaAdyenConfigId) {
this.empresaAdyenConfigId = empresaAdyenConfigId;
}
public Empresa getEmpresa() {
return empresa;
}
public void setEmpresa(Empresa empresa) {
this.empresa = empresa;
}
public String getApiKey() {
return apiKey;
}
public void setApiKey(String apiKey) {
this.apiKey = apiKey;
}
public Boolean getIndProducao() {
return indProducao;
}
public void setIndProducao(Boolean indProducao) {
this.indProducao = indProducao;
}
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 getMerchantAccountAdyen() {
return merchantAccountAdyen;
}
public void setMerchantAccountAdyen(String merchantAccountAdyen) {
this.merchantAccountAdyen = merchantAccountAdyen;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((empresaAdyenConfigId == null) ? 0 : empresaAdyenConfigId.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;
EmpresaAdyenConfig other = (EmpresaAdyenConfig) obj;
if (empresaAdyenConfigId == null) {
if (other.empresaAdyenConfigId != null)
return false;
} else if (!empresaAdyenConfigId.equals(other.empresaAdyenConfigId))
return false;
return true;
}
@Override
public String toString() {
return String.valueOf(this.getEmpresaAdyenConfigId());
}
}