title: how we can get JPA EntityManager Flush work
body: <p>my question is why flush doesn't work :</p>
  
  <pre><code>public void ejbService(){
     Customer c = em.find(Customer.class,1);
     c.setName("newName");
     em.flush();
     //at this point when I query mysql table I can not see "newName"
  
  
     thread.sleep(10000);
  
     c.setName("anotherName");
  }
  </code></pre>
  
  <p>After finishing the method I see "anotherName" in the db
  also I check it with em.find(Customer.class,1,Lock.None); but still not work </p>
  
  <p>RGDS</p>