robe-hibernate/src/main/java/io/robe/hibernate/transaction/Transaction.java
private void success() {
        org.hibernate.Transaction txn = session.getTransaction();
        if (txn != null && txn.getStatus().equals(TransactionStatus.ACTIVE)) {
            txn.commit();
        }
    }
private void success() {
        org.hibernate.Transaction txn = session.getTransaction();
        if (txn != null && txn.getStatus().equals(TransactionStatus.ACTIVE)) {
            txn.commit();
        }
    }
private void success ( ) { org . hibernate . Transaction txn = session . getTransaction ( ) ; if ( txn != null && txn . getStatus ( ) . equals ( TransactionStatus . ACTIVE ) ) { txn . commit ( ) ; } }
If transaction is present and active then commit.
If transaction is present and active then commit .