como podemos obter o trabalho JPA EntityManager Flush

minha pergunta é por que flush não funciona:

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");
}

Após terminar o método, vejo "anotherName" no banco de dados e também o verifico com em.find (Customer.class, 1, Lock.None); mas ainda não funciona

RGDS

questionAnswers(1)

yourAnswerToTheQuestion