invoke postCommit in commitSafely

This commit is contained in:
Fabio Sinibaldi 2020-11-26 15:07:00 +01:00
parent deeb1d4685
commit 746e5d7a43
1 changed files with 4 additions and 2 deletions

View File

@ -221,7 +221,8 @@ public abstract class AbstractRecordManager<T extends Record> {
log.debug("Committing session for "+theRecord);
transaction.commit();
log.debug("Calling postCommit");
postcommit();
} catch (PersistenceException e) {
toReturn.addChild(e.getReport());
log.warn("Unexpected internal exception ",e);
@ -231,7 +232,8 @@ public abstract class AbstractRecordManager<T extends Record> {
toReturn.addMessage(ValidationStatus.WARNING, "Centroide non registrato");
log.warn("Unexpected internal exception ",e);
log.debug("Committing session for "+theRecord);
transaction.commit();
transaction.commit(); log.debug("Calling postCommit");
postcommit();
}