title: Hibernate autocommit true for a single command
body: <p>Hibernate automatically sets autocommit to false, and indeed even recommends against setting it to true.</p>
  
  <p>I find myself in the need of having autocommit set to true for a single database command (I want to send 'VACUUM' to my postgresql database, which requires autocommit set to true), but I want autocommit to be set (as recommended) to false for everything else.</p>
  
  <p>I can't seem to find any way to change the autocommit setting programmatically for a single session.</p>
  
  <p>-- Do I need to have a separate Configuration/SessionFactory for this one operation??</p>
  
  <p>Thanks.</p>