title: org.hibernate.TransactionException: Transaction not successfully started
body: <p>I am new to hibernate and would appreciate any help.  The following code throws the above exception:</p>
  
  <pre><code>session.beginTransaction();
  session.update(a);
  if(!a.getState().equals(TransactionStatus.ACTIVE))
  session.getTransaction().commit();
  </code></pre>