use of org.neo4j.ogm.exception.TransactionException in project neo4j-ogm by neo4j.
the class EmbeddedTransaction method commit.
@Override
public void commit() {
try {
if (transactionManager.canCommit()) {
LOGGER.debug("Committing native transaction: {}", nativeTransaction);
nativeTransaction.commit();
nativeTransaction.close();
}
} catch (Exception e) {
throw new TransactionException(e.getLocalizedMessage(), e);
} finally {
super.commit();
}
}
Aggregations