title: Hibernate transaction management without Spring
body: <p>i want to use Hibernate without Spring, i setup Hiberante in this way:</p>
  
  <pre><code>&lt;property name="transaction.factory_class"&gt;org.hibernate.transaction.JDBCTransactionFactory&lt;/property&gt;
  &lt;property name="hibernate.current_session_context_class"&gt;thread&lt;/property&gt;
  </code></pre>
  
  <p>But now I get this Exception:</p>
  
  <pre><code>org.hibernate.HibernateException: get is not valid without active transaction
  </code></pre>
  
  <p>There is any way to let Hibernate automanage transaction like Spring does? Must I open and close transaction manually?</p>
  
  <p>Thank you.</p>