184 lines
4.2 KiB
Java
184 lines
4.2 KiB
Java
package com.rjconsultores.ventaboletos.entidad;
|
|
|
|
import java.io.Serializable;
|
|
import java.math.BigDecimal;
|
|
import java.util.Date;
|
|
|
|
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.ManyToOne;
|
|
import javax.persistence.SequenceGenerator;
|
|
import javax.persistence.Table;
|
|
import javax.persistence.Temporal;
|
|
import javax.persistence.TemporalType;
|
|
|
|
@Entity
|
|
@SequenceGenerator(name = "CONEXION_CONF_SEQ", sequenceName = "CONEXION_CONF_SEQ", allocationSize = 1)
|
|
@Table(name = "CONEXION_CONF")
|
|
public class ConexionConf implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
@Id
|
|
@Column(name = "CONEXIONCONF_ID")
|
|
@GeneratedValue(strategy = GenerationType.AUTO, generator = "CONEXION_CONF_SEQ")
|
|
private Long conexionConfId;
|
|
@ManyToOne
|
|
@JoinColumn(name = "CONEXIONCTRL_ID", referencedColumnName = "CONEXIONCTRL_ID")
|
|
private ConexionCtrl conexionCtrl;
|
|
@Column(name = "GRUPO")
|
|
private Integer grupo;
|
|
@Column(name = "PORSEC1")
|
|
private BigDecimal porSec1;
|
|
@Column(name = "PORSEC2")
|
|
private BigDecimal porSec2;
|
|
@Column(name = "PORSEC3")
|
|
private BigDecimal porSec3;
|
|
@Column(name = "PORSEC4")
|
|
private BigDecimal porSec4;
|
|
@Column(name = "TIEMPOMIN")
|
|
private Integer tiempoMin;
|
|
@Column(name = "TIEMPOMAX")
|
|
private Integer tiempoMax;
|
|
@Column(name = "INDDISPONIBLE")
|
|
private Boolean indisponible;
|
|
@Column(name = "ACTIVO")
|
|
private Boolean activo;
|
|
@Column(name = "FECMODIF")
|
|
@Temporal(TemporalType.TIMESTAMP)
|
|
private Date fecmodif;
|
|
@Column(name = "USUARIO_ID")
|
|
private Integer usuarioId;
|
|
|
|
public Long getConexionConfId() {
|
|
return conexionConfId;
|
|
}
|
|
|
|
public void setConexionConfId(Long conexionConfId) {
|
|
this.conexionConfId = conexionConfId;
|
|
}
|
|
|
|
public ConexionCtrl getConexionCtrl() {
|
|
return conexionCtrl;
|
|
}
|
|
|
|
public void setConexionCtrl(ConexionCtrl conexionCtrl) {
|
|
this.conexionCtrl = conexionCtrl;
|
|
}
|
|
|
|
public Integer getGrupo() {
|
|
return grupo;
|
|
}
|
|
|
|
public void setGrupo(Integer grupo) {
|
|
this.grupo = grupo;
|
|
}
|
|
|
|
public BigDecimal getPorSec1() {
|
|
return porSec1;
|
|
}
|
|
|
|
public void setPorSec1(BigDecimal porSec1) {
|
|
this.porSec1 = porSec1;
|
|
}
|
|
|
|
public BigDecimal getPorSec2() {
|
|
return porSec2;
|
|
}
|
|
|
|
public void setPorSec2(BigDecimal porSec2) {
|
|
this.porSec2 = porSec2;
|
|
}
|
|
|
|
public BigDecimal getPorSec3() {
|
|
return porSec3;
|
|
}
|
|
|
|
public void setPorSec3(BigDecimal porSec3) {
|
|
this.porSec3 = porSec3;
|
|
}
|
|
|
|
public BigDecimal getPorSec4() {
|
|
return porSec4;
|
|
}
|
|
|
|
public void setPorSec4(BigDecimal porSec4) {
|
|
this.porSec4 = porSec4;
|
|
}
|
|
|
|
public Integer getTiempoMin() {
|
|
return tiempoMin;
|
|
}
|
|
|
|
public void setTiempoMin(Integer tiempoMin) {
|
|
this.tiempoMin = tiempoMin;
|
|
}
|
|
|
|
public Integer getTiempoMax() {
|
|
return tiempoMax;
|
|
}
|
|
|
|
public void setTiempoMax(Integer tiempoMax) {
|
|
this.tiempoMax = tiempoMax;
|
|
}
|
|
|
|
public Boolean getIndisponible() {
|
|
return indisponible;
|
|
}
|
|
|
|
public void setIndisponible(Boolean indisponible) {
|
|
this.indisponible = indisponible;
|
|
}
|
|
|
|
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 + ((conexionConfId == null) ? 0 : conexionConfId.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;
|
|
ConexionConf other = (ConexionConf) obj;
|
|
if (conexionConfId == null) {
|
|
if (other.conexionConfId != null)
|
|
return false;
|
|
} else if (!conexionConfId.equals(other.conexionConfId))
|
|
return false;
|
|
return true;
|
|
}
|
|
}
|