164 lines
3.6 KiB
Java
164 lines
3.6 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 = "EMP_CIELOLINK_CONFIG_SEQ", sequenceName = "EMP_CIELOLINK_CONFIG_SEQ", allocationSize = 1)
|
|
@Table(name = "EMPRESA_CIELOLINK_CONFIG")
|
|
public class EmpresaCieloLinkConfig implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
@Id
|
|
@Basic(optional = false)
|
|
@GeneratedValue(strategy = GenerationType.AUTO, generator = "EMP_CIELOLINK_CONFIG_SEQ")
|
|
@Column(name = "EMPRESACIELOLINK_ID")
|
|
private Integer empresaCieloLinkId;
|
|
|
|
@Column(name = "CLIENT_ID")
|
|
private String clientId;
|
|
|
|
@Column(name = "MERCHANT_ID")
|
|
private String merchantId;
|
|
|
|
@Column(name = "SECRET")
|
|
private String secret;
|
|
|
|
@Column(name = "URL")
|
|
private String url;
|
|
|
|
@OneToOne
|
|
@JoinColumn(name = "EMPRESA_ID")
|
|
private Empresa empresa;
|
|
|
|
@Column(name = "ACTIVO")
|
|
private Boolean activo;
|
|
|
|
@Column(name = "FECMODIF")
|
|
@Temporal(TemporalType.TIMESTAMP)
|
|
private Date fecmodif;
|
|
|
|
@Column(name = "USUARIO_ID")
|
|
private Integer usuarioId;
|
|
|
|
@Column(name = "MINUTOS_CANCELA")
|
|
private Integer minutosCancela;
|
|
|
|
public EmpresaCieloLinkConfig() {
|
|
}
|
|
|
|
public Integer getEmpresaCieloLinkId() {
|
|
return empresaCieloLinkId;
|
|
}
|
|
|
|
public void setEmpresaCieloLinkId(Integer empresaCieloLinkId) {
|
|
this.empresaCieloLinkId = empresaCieloLinkId;
|
|
}
|
|
|
|
public String getClientId() {
|
|
return clientId;
|
|
}
|
|
public void setClientId(String clientId) {
|
|
this.clientId = clientId;
|
|
}
|
|
public String getMerchantId() {
|
|
return merchantId;
|
|
}
|
|
public void setMerchantId(String merchantId) {
|
|
this.merchantId = merchantId;
|
|
}
|
|
public String getSecret() {
|
|
return secret;
|
|
}
|
|
public void setSecret(String secret) {
|
|
this.secret = secret;
|
|
}
|
|
public String getUrl() {
|
|
return url;
|
|
}
|
|
public void setUrl(String url) {
|
|
this.url = url;
|
|
}
|
|
public Integer getMinutosCancela() {
|
|
return minutosCancela;
|
|
}
|
|
public void setMinutosCancela(Integer minutosCancela) {
|
|
this.minutosCancela = minutosCancela;
|
|
}
|
|
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;
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
final int prime = 31;
|
|
int result = 1;
|
|
result = prime * result
|
|
+ ((empresaCieloLinkId == null) ? 0 : empresaCieloLinkId.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;
|
|
EmpresaCieloLinkConfig other = (EmpresaCieloLinkConfig) obj;
|
|
if (empresaCieloLinkId == null) {
|
|
if (other.empresaCieloLinkId != null)
|
|
return false;
|
|
} else if (!empresaCieloLinkId.equals(other.empresaCieloLinkId))
|
|
return false;
|
|
return true;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return String.valueOf(this.getEmpresaCieloLinkId());
|
|
}
|
|
|
|
}
|