git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@30983 d1611594-4594-4d17-8e1d-87c2c4800839
parent
19dede32d0
commit
17d709cb00
|
@ -18,121 +18,120 @@ import javax.persistence.Temporal;
|
||||||
import javax.persistence.TemporalType;
|
import javax.persistence.TemporalType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author gleimar
|
* @author gleimar
|
||||||
*/
|
*/
|
||||||
@Entity
|
@Entity
|
||||||
@Table(name = "CONEXION")
|
@Table(name = "CONEXION")
|
||||||
public class Conexion implements Serializable {
|
public class Conexion implements Serializable {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@Id
|
@Id
|
||||||
@Basic(optional = false)
|
@Basic(optional = false)
|
||||||
@Column(name = "CONEXION_ID")
|
@Column(name = "CONEXION_ID")
|
||||||
private Long conexionId;
|
private Long conexionId;
|
||||||
@Column(name = "NUMGRUPO")
|
@Column(name = "NUMGRUPO")
|
||||||
private Integer numgrupo;
|
private Integer numgrupo;
|
||||||
@Column(name = "NUMSECUENCIA")
|
@Column(name = "NUMSECUENCIA")
|
||||||
private Short numsecuencia;
|
private Short numsecuencia;
|
||||||
@Column(name = "ACTIVO")
|
@Column(name = "ACTIVO")
|
||||||
private Boolean activo;
|
private Boolean activo;
|
||||||
@Column(name = "FECMODIF")
|
@Column(name = "FECMODIF")
|
||||||
@Temporal(TemporalType.TIMESTAMP)
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
private Date fecmodif;
|
private Date fecmodif;
|
||||||
@Column(name = "USUARIO_ID")
|
@Column(name = "USUARIO_ID")
|
||||||
private Integer usuarioId;
|
private Integer usuarioId;
|
||||||
@Column(name = "ORIGEN_ID")
|
@Column(name = "ORIGEN_ID")
|
||||||
private Integer origenId;
|
private Integer origenId;
|
||||||
@Column(name = "DESTINO_ID")
|
@Column(name = "DESTINO_ID")
|
||||||
private Integer destinoId;
|
private Integer destinoId;
|
||||||
@Column(name = "CONEXIONCTRL_ID")
|
@Column(name = "CONEXIONCTRL_ID")
|
||||||
private Long conexionctrlId;
|
private Long conexionctrlId;
|
||||||
@JoinColumn(name = "ORIGEN_ID", referencedColumnName = "PARADA_ID",insertable=false,updatable=false)
|
@JoinColumn(name = "ORIGEN_ID", referencedColumnName = "PARADA_ID", insertable = false, updatable = false)
|
||||||
@ManyToOne
|
@ManyToOne
|
||||||
private Parada origen;
|
private Parada origen;
|
||||||
@JoinColumn(name = "DESTINO_ID", referencedColumnName = "PARADA_ID",insertable=false,updatable=false)
|
@JoinColumn(name = "DESTINO_ID", referencedColumnName = "PARADA_ID", insertable = false, updatable = false)
|
||||||
@ManyToOne
|
@ManyToOne
|
||||||
private Parada destino;
|
private Parada destino;
|
||||||
|
|
||||||
public Conexion() {
|
public Conexion() {
|
||||||
}
|
}
|
||||||
|
|
||||||
public Conexion(Long conexionId) {
|
public Conexion(Long conexionId) {
|
||||||
this.conexionId = conexionId;
|
this.conexionId = conexionId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Long getConexionId() {
|
public Long getConexionId() {
|
||||||
return conexionId;
|
return conexionId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setConexionId(Long conexionId) {
|
public void setConexionId(Long conexionId) {
|
||||||
this.conexionId = conexionId;
|
this.conexionId = conexionId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer getNumgrupo() {
|
public Integer getNumgrupo() {
|
||||||
return numgrupo;
|
return numgrupo;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setNumgrupo(Integer numgrupo) {
|
public void setNumgrupo(Integer numgrupo) {
|
||||||
this.numgrupo = numgrupo;
|
this.numgrupo = numgrupo;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Short getNumsecuencia() {
|
public Short getNumsecuencia() {
|
||||||
return numsecuencia;
|
return numsecuencia;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setNumsecuencia(Short numsecuencia) {
|
public void setNumsecuencia(Short numsecuencia) {
|
||||||
this.numsecuencia = numsecuencia;
|
this.numsecuencia = numsecuencia;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Boolean getActivo() {
|
public Boolean getActivo() {
|
||||||
return activo;
|
return activo;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setActivo(Boolean activo) {
|
public void setActivo(Boolean activo) {
|
||||||
this.activo = activo;
|
this.activo = activo;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Date getFecmodif() {
|
public Date getFecmodif() {
|
||||||
return fecmodif;
|
return fecmodif;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setFecmodif(Date fecmodif) {
|
public void setFecmodif(Date fecmodif) {
|
||||||
this.fecmodif = fecmodif;
|
this.fecmodif = fecmodif;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer getUsuarioId() {
|
public Integer getUsuarioId() {
|
||||||
return usuarioId;
|
return usuarioId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUsuarioId(Integer usuarioId) {
|
public void setUsuarioId(Integer usuarioId) {
|
||||||
this.usuarioId = usuarioId;
|
this.usuarioId = usuarioId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int hash = 0;
|
||||||
|
hash += (conexionId != null ? conexionId.hashCode() : 0);
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public boolean equals(Object object) {
|
||||||
int hash = 0;
|
// TODO: Warning - this method won't work in the case the id fields are not set
|
||||||
hash += (conexionId != null ? conexionId.hashCode() : 0);
|
if (!(object instanceof Conexion)) {
|
||||||
return hash;
|
return false;
|
||||||
}
|
}
|
||||||
|
Conexion other = (Conexion) object;
|
||||||
|
if ((this.conexionId == null && other.conexionId != null) || (this.conexionId != null && !this.conexionId.equals(other.conexionId))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object object) {
|
public String toString() {
|
||||||
// TODO: Warning - this method won't work in the case the id fields are not set
|
return "com.rjconsultores.entidad.Conexion[ conexionId=" + conexionId + " ]";
|
||||||
if (!(object instanceof Conexion)) {
|
}
|
||||||
return false;
|
|
||||||
}
|
|
||||||
Conexion other = (Conexion) object;
|
|
||||||
if ((this.conexionId == null && other.conexionId != null) || (this.conexionId != null && !this.conexionId.equals(other.conexionId))) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return "com.rjconsultores.entidad.Conexion[ conexionId=" + conexionId + " ]";
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getConexionctrlId() {
|
public Long getConexionctrlId() {
|
||||||
return conexionctrlId;
|
return conexionctrlId;
|
||||||
|
@ -157,5 +156,4 @@ public class Conexion implements Serializable {
|
||||||
public void setDestinoId(Integer destinoId) {
|
public void setDestinoId(Integer destinoId) {
|
||||||
this.destinoId = destinoId;
|
this.destinoId = destinoId;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,5 +27,4 @@ public class ConexionServiceImpl implements ConexionService {
|
||||||
public List<ConexionVO> buscarConexiones(Integer origenId, Integer destinoId) {
|
public List<ConexionVO> buscarConexiones(Integer origenId, Integer destinoId) {
|
||||||
return conexionDAO.buscarConexiones(origenId, destinoId);
|
return conexionDAO.buscarConexiones(origenId, destinoId);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue