title: Multiple transactions in a single hibernate session (with Spring)
body: <p>Is it possible to model the following using Hibernate + Spring.</p>
  
  <ul>
  <li>Open session</li>
  <li>Begin transaction</li>
  <li>Do some work</li>
  <li>Commit</li>
  <li>Begin transaction</li>
  <li>More work</li>
  <li>Commit</li>
  <li>Close session</li>
  </ul>
  
  <p>I use the Spring TransactionTemplate which does both session + transaction lifetime scoping.</p>
  
  <p>The reason is that sometimes I have a few stages in a business process and I would like to commit after each stage completes. However I would like to continue using the same persistent objects. If I have a separate session per transaction then I get transient/detached exceptions because the original session was closed.</p>
  
  <p>Is this possible?</p>