diff --git a/src/com/rjconsultores/ventaboletos/vo/corrida/CorridaVO.java b/src/com/rjconsultores/ventaboletos/vo/corrida/CorridaVO.java index 5be965192..0f28bbd4a 100644 --- a/src/com/rjconsultores/ventaboletos/vo/corrida/CorridaVO.java +++ b/src/com/rjconsultores/ventaboletos/vo/corrida/CorridaVO.java @@ -41,19 +41,18 @@ public class CorridaVO { public CorridaVO( Corrida corrida ) { super(); - CorridaVO co = new CorridaVO(); - co.setCorridaId(corrida.getId().getCorridaId()); - co.setFeccorrida( DateUtil.getStringDate( corrida.getId().getFeccorrida())); - co.setNumCorrida(corrida.getId().getCorridaId()); - co.setFechorsalida( DateUtil.getStringDate(corrida.getFechorsalida(), "dd/MM/yyyy HH:mm:ss.SSS") ); - co.setOrigenId(corrida.getOrigem().getParadaId()); - co.setDestinoId(corrida.getDestino().getParadaId()); - co.setTipoServicioId(corrida.getTipoServicio().intValue()); - co.setRolOperativoId(corrida.getRolOperativo().getRoloperativoId()); - co.setMarcaId( corrida.getMarca().getMarcaId().intValue() ); - co.setClaseServicioId( corrida.getClaseServicio().getClaseservicioId()); - co.setEmpresaId( corrida.getEmpresa().getEmpresaId()); - co.setRutaId( corrida.getRuta().getRutaId() ); + this.corridaId = corrida.getId().getCorridaId(); + this.feccorrida = DateUtil.getStringDate( corrida.getId().getFeccorrida()); + this.numCorrida = corrida.getId().getCorridaId(); + this.fechorsalida = DateUtil.getStringDate(corrida.getFechorsalida(), "dd/MM/yyyy HH:mm:ss.SSS"); + this.origenId = corrida.getOrigem().getParadaId(); + this.destinoId = corrida.getDestino().getParadaId(); + this.tipoServicioId = corrida.getTipoServicio().intValue(); + this.rolOperativoId = corrida.getRolOperativo().getRoloperativoId(); + this.marcaId = corrida.getMarca().getMarcaId().intValue(); + this.claseServicioId = corrida.getClaseServicio().getClaseservicioId(); + this.empresaId = corrida.getEmpresa().getEmpresaId(); + this.rutaId = corrida.getRuta().getRutaId(); } public CorridaVO(Integer corridaId, Integer numCorrida, String descServico, String fechorsalida,