From 17d709cb001fe118e658577e9040599fdf676a64 Mon Sep 17 00:00:00 2001 From: rodrigo Date: Tue, 17 Sep 2013 13:16:41 +0000 Subject: [PATCH] git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@30983 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../ventaboletos/entidad/Conexion.java | 186 +++++++++--------- .../service/impl/ConexionServiceImpl.java | 1 - 2 files changed, 92 insertions(+), 95 deletions(-) diff --git a/src/com/rjconsultores/ventaboletos/entidad/Conexion.java b/src/com/rjconsultores/ventaboletos/entidad/Conexion.java index 0c34f3a5b..75442807b 100644 --- a/src/com/rjconsultores/ventaboletos/entidad/Conexion.java +++ b/src/com/rjconsultores/ventaboletos/entidad/Conexion.java @@ -18,121 +18,120 @@ import javax.persistence.Temporal; import javax.persistence.TemporalType; /** - * + * * @author gleimar */ @Entity @Table(name = "CONEXION") public class Conexion implements Serializable { - private static final long serialVersionUID = 1L; - @Id - @Basic(optional = false) - @Column(name = "CONEXION_ID") - private Long conexionId; - @Column(name = "NUMGRUPO") - private Integer numgrupo; - @Column(name = "NUMSECUENCIA") - private Short numsecuencia; - @Column(name = "ACTIVO") - private Boolean activo; - @Column(name = "FECMODIF") - @Temporal(TemporalType.TIMESTAMP) - private Date fecmodif; - @Column(name = "USUARIO_ID") - private Integer usuarioId; - @Column(name = "ORIGEN_ID") - private Integer origenId; - @Column(name = "DESTINO_ID") - private Integer destinoId; - @Column(name = "CONEXIONCTRL_ID") - private Long conexionctrlId; - @JoinColumn(name = "ORIGEN_ID", referencedColumnName = "PARADA_ID",insertable=false,updatable=false) - @ManyToOne - private Parada origen; - @JoinColumn(name = "DESTINO_ID", referencedColumnName = "PARADA_ID",insertable=false,updatable=false) - @ManyToOne - private Parada destino; + private static final long serialVersionUID = 1L; + @Id + @Basic(optional = false) + @Column(name = "CONEXION_ID") + private Long conexionId; + @Column(name = "NUMGRUPO") + private Integer numgrupo; + @Column(name = "NUMSECUENCIA") + private Short numsecuencia; + @Column(name = "ACTIVO") + private Boolean activo; + @Column(name = "FECMODIF") + @Temporal(TemporalType.TIMESTAMP) + private Date fecmodif; + @Column(name = "USUARIO_ID") + private Integer usuarioId; + @Column(name = "ORIGEN_ID") + private Integer origenId; + @Column(name = "DESTINO_ID") + private Integer destinoId; + @Column(name = "CONEXIONCTRL_ID") + private Long conexionctrlId; + @JoinColumn(name = "ORIGEN_ID", referencedColumnName = "PARADA_ID", insertable = false, updatable = false) + @ManyToOne + private Parada origen; + @JoinColumn(name = "DESTINO_ID", referencedColumnName = "PARADA_ID", insertable = false, updatable = false) + @ManyToOne + private Parada destino; - public Conexion() { - } + public Conexion() { + } - public Conexion(Long conexionId) { - this.conexionId = conexionId; - } + public Conexion(Long conexionId) { + this.conexionId = conexionId; + } - public Long getConexionId() { - return conexionId; - } + public Long getConexionId() { + return conexionId; + } - public void setConexionId(Long conexionId) { - this.conexionId = conexionId; - } + public void setConexionId(Long conexionId) { + this.conexionId = conexionId; + } - public Integer getNumgrupo() { - return numgrupo; - } + public Integer getNumgrupo() { + return numgrupo; + } - public void setNumgrupo(Integer numgrupo) { - this.numgrupo = numgrupo; - } + public void setNumgrupo(Integer numgrupo) { + this.numgrupo = numgrupo; + } - public Short getNumsecuencia() { - return numsecuencia; - } + public Short getNumsecuencia() { + return numsecuencia; + } - public void setNumsecuencia(Short numsecuencia) { - this.numsecuencia = numsecuencia; - } + public void setNumsecuencia(Short numsecuencia) { + this.numsecuencia = numsecuencia; + } - public Boolean getActivo() { - return activo; - } + public Boolean getActivo() { + return activo; + } - public void setActivo(Boolean activo) { - this.activo = activo; - } + public void setActivo(Boolean activo) { + this.activo = activo; + } - public Date getFecmodif() { - return fecmodif; - } + public Date getFecmodif() { + return fecmodif; + } - public void setFecmodif(Date fecmodif) { - this.fecmodif = fecmodif; - } + public void setFecmodif(Date fecmodif) { + this.fecmodif = fecmodif; + } - public Integer getUsuarioId() { - return usuarioId; - } + public Integer getUsuarioId() { + return usuarioId; + } - public void setUsuarioId(Integer usuarioId) { - this.usuarioId = usuarioId; - } + public void setUsuarioId(Integer usuarioId) { + this.usuarioId = usuarioId; + } + @Override + public int hashCode() { + int hash = 0; + hash += (conexionId != null ? conexionId.hashCode() : 0); + return hash; + } - @Override - public int hashCode() { - int hash = 0; - hash += (conexionId != null ? conexionId.hashCode() : 0); - return hash; - } + @Override + public boolean equals(Object object) { + // TODO: Warning - this method won't work in the case the id fields are not set + 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 boolean equals(Object object) { - // TODO: Warning - this method won't work in the case the id fields are not set - 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 + " ]"; - } + @Override + public String toString() { + return "com.rjconsultores.entidad.Conexion[ conexionId=" + conexionId + " ]"; + } public Long getConexionctrlId() { return conexionctrlId; @@ -157,5 +156,4 @@ public class Conexion implements Serializable { public void setDestinoId(Integer destinoId) { this.destinoId = destinoId; } - } diff --git a/src/com/rjconsultores/ventaboletos/service/impl/ConexionServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/ConexionServiceImpl.java index 5d4e2b221..ac7d87845 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/ConexionServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/ConexionServiceImpl.java @@ -27,5 +27,4 @@ public class ConexionServiceImpl implements ConexionService { public List buscarConexiones(Integer origenId, Integer destinoId) { return conexionDAO.buscarConexiones(origenId, destinoId); } - }