title: hibernate and delete all
body: <p>What is the best way to <strong>delete all rows in a table in Hibernate</strong>?</p>
  
  <p>If I iterate over a collection and call <code>session.delete()</code> it's not performing to my knowledge.</p>
  
  <p>If I use another option <code>session.createQuery("delete ...")</code> it doesn't affect persistence context.</p>
  
  <p>When I should use these methods if there is no better variant?</p>