rodrigo 2013-09-17 13:16:41 +00:00
parent 19dede32d0
commit 17d709cb00
2 changed files with 92 additions and 95 deletions

View File

@ -46,10 +46,10 @@ public class Conexion implements Serializable {
private Integer destinoId;
@Column(name = "CONEXIONCTRL_ID")
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
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
private Parada destino;
@ -108,7 +108,6 @@ public class Conexion implements Serializable {
this.usuarioId = usuarioId;
}
@Override
public int hashCode() {
int hash = 0;
@ -157,5 +156,4 @@ public class Conexion implements Serializable {
public void setDestinoId(Integer destinoId) {
this.destinoId = destinoId;
}
}

View File

@ -27,5 +27,4 @@ public class ConexionServiceImpl implements ConexionService {
public List<ConexionVO> buscarConexiones(Integer origenId, Integer destinoId) {
return conexionDAO.buscarConexiones(origenId, destinoId);
}
}