title: How to audit in a for-loop (Hibernate envers)?
body: <p>I am using hibernate envers for auditing. 
  It works fine but today I realized that it doesnt if I create entities in a for-loop.
  After set log true for sql queries I figured out, that the rev-tables are not updated after each iteration. Somehow hibernate collects all changes and fires the audit command in the end of a request? How can I let hibernate to do auditing after each iteration in my for-loop?</p>
  
  <p>What I already tried:</p>
  
  <pre><code>for (...) {
  
   Obj a = new Obj();
   objRepository.save(a);
  
   entityManager.flush();
   entityManager.clear();
  } 
  </code></pre>