title: EntityManager refresh
body: <p>I have web application using JPA. This entity manager keeps bunch of entites and suddenly I update the database from other side. I use <strong>MySQL</strong> and I use <strong>PhpMyAdmin</strong> and change some row. </p>
  
  <p>How to tell entity manager to re-synchronize, e.g. to forgot all the entites in cache? </p>
  
  <p>I know there is <code>refresh(Object)</code> method, but is there any possibility how to do <code>refreshAll()</code> or something what results in this? </p>
  
  <p>It is sure this is expensive operation but if it has to be done.</p>