net.sf.hibernate.transaction.JDBCTransaction:
public void begin() throws HibernateException { log.debug("begin"); try { toggleAutoCommit = session.connection().getAutoCommit(); if (toggleAutoCommit) session.connection().setAutoCommit(false); } catch (SQLException e) { log.error("Begin failed", e); throw new TransactionException("Begin failed with SQL exception: ", e); } begun = true; }
|