diff --git a/pom.xml b/pom.xml index f4c6d5e35..15a876b47 100644 --- a/pom.xml +++ b/pom.xml @@ -4,11 +4,11 @@ 4.0.0 br.com.rjconsultores ventaboletosadm - 1.31.0 + 1.31.1 war - 1.22.0 + 1.22.1 1.19.0 UTF-8 UTF-8 diff --git a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/esquemaoperacional/EditarCorridaController.java b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/esquemaoperacional/EditarCorridaController.java index 36a2a3542..4604df2b8 100644 --- a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/esquemaoperacional/EditarCorridaController.java +++ b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/esquemaoperacional/EditarCorridaController.java @@ -71,6 +71,7 @@ import com.rjconsultores.ventaboletos.service.AutobusService; import com.rjconsultores.ventaboletos.service.BoletoService; import com.rjconsultores.ventaboletos.service.ClaseServicioService; import com.rjconsultores.ventaboletos.service.ConstanteService; +import com.rjconsultores.ventaboletos.service.CorridaInfoService; import com.rjconsultores.ventaboletos.service.CorridaService; import com.rjconsultores.ventaboletos.service.DivisionService; import com.rjconsultores.ventaboletos.service.EmpresaService; @@ -139,6 +140,8 @@ public class EditarCorridaController extends MyGenericForwardComposer { @Autowired CorridaService corridaService; @Autowired + private CorridaInfoService corridaInfoService; + @Autowired BoletoService boletoService; @Autowired private RutaEmbarqueDesembarqueService rutaEmbarqueDesembarqueService; @@ -1062,6 +1065,8 @@ public class EditarCorridaController extends MyGenericForwardComposer { } try { + //apagando manualmente a tabela corrida_info, para evitar mexer no relacionamento com a entidade corrida, visto que é pouca informação e pouco usado essa tabela + corridaInfoService.borrarByCorrida(corrida); corridaService.borrar(corrida); }catch (DataIntegrityViolationException e) { if(e.getRootCause()!=null && e.getRootCause().getLocalizedMessage() !=null && e.getRootCause().getLocalizedMessage().contains("SYS_C004956867")) {