rimossa eccezione in caso di errore e aggiunto commit per gestione transazioni
This commit is contained in:
@@ -155,7 +155,6 @@ public class CambioTipoDocPlanService {
|
|||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
mLastProcedureStartTime.remove(profileDb);
|
mLastProcedureStartTime.remove(profileDb);
|
||||||
throw new Exception("Errore, controllare il log");
|
|
||||||
} else
|
} else
|
||||||
multiDBTransactionManager.commitAll();
|
multiDBTransactionManager.commitAll();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -163,6 +163,7 @@ public class GeneraCorrispettiviService {
|
|||||||
" pv. " + dtbDoct.getCodMdep()
|
" pv. " + dtbDoct.getCodMdep()
|
||||||
));
|
));
|
||||||
entityReturn.add(dtbDoct);
|
entityReturn.add(dtbDoct);
|
||||||
|
multiDBTransactionManager.commitAll();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user