fixes bug#AL-3498
parent
3cca5d76d9
commit
c31dcf0b0f
4
pom.xml
4
pom.xml
|
@ -4,11 +4,11 @@
|
|||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>br.com.rjconsultores</groupId>
|
||||
<artifactId>ventaboletosadm</artifactId>
|
||||
<version>1.31.0</version>
|
||||
<version>1.31.1</version>
|
||||
<packaging>war</packaging>
|
||||
|
||||
<properties>
|
||||
<modelWeb.version>1.22.0</modelWeb.version>
|
||||
<modelWeb.version>1.22.1</modelWeb.version>
|
||||
<flyway.version>1.19.0</flyway.version>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||
|
|
|
@ -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")) {
|
||||
|
|
Loading…
Reference in New Issue