If we try to commit the transaction without the transaction begin then it will throw the TransactionException...
Transaction tx = session.beginTransaction();
tx.commit();
tx.commit(); - the 2nd commit is there without the Transaction,so it will throw the
TransactionException....
Transaction tx = session.beginTransaction();
tx.commit();
tx.commit(); - the 2nd commit is there without the Transaction,so it will throw the
TransactionException....