hibernate and delete all
<p>What is the best way to delete all rows in a table in hiberate?</p>

<p>If I iterate over a collection and call session.delete() It's not performing to my knowledge.</p>

<p>If I use another option session.createQuery("delete ...") it doesn't affect persistence context.</p>

<p>When I should use these methods if there is no better variant?</p>

<p>thank you</p>
