title: clear() and flush() not working in JPA/EclipseLink
body: <p>Simply I want to clear the peristence contexte of my entity manager to reload ALL data from database and specially in that method:</p>
  
  <pre><code>public MyEntity find(Object id) {
      EntityManager em = getEntityManager();
      EntityTransaction tx = em.getTransaction();
      tx.begin();
      em.flush();
      tx.commit();
      em.clear();
      return em.find(MyEntity .class, id);
  }
  </code></pre>
  
  <p>But it seems that <code>flush()</code> is not working properly because when I insert an <code>OtherEntity</code> and execute that method I don't find it in the persistence context by <code>getCollection()</code> method (only after restarting my app)..</p>