1718192021222324252627
persister.save(); Transaction transaction = persister.getTransaction(); try { transaction.start(); T result = super.executeNext(command); transaction.commit(); return result; } catch (Throwable t) { try { transaction.rollback(); throw new RuntimeException("Could not execute command", t);
2425262728293031323334
persister.save(); Transaction transaction = persister.getTransaction(); try { transaction.start(); Object result = command.execute(session); transaction.commit(); return result; } catch (Throwable t) { try { transaction.rollback(); throw new RuntimeException("Could not execute command", t);