Report question

Question: Entitymanager.flush() VS EntityManager.getTransaction().commit - What should I prefer?