title: EntityManager.persist() doesn't save to database
body: <p><code>EntityManager.persist()</code> doesn't save to database with a new entity bean I added to my project. Previously similarly added beans saves to the database. </p>
  
  <p>I have tried adding <code>EntityManager.getTransaction().commit()</code>, which results in an error and <code>EntityManager.flush()</code>, but that results in <code>TransactionRequiredException</code>.</p>
  
  <p>Any help would be appreciated.</p>