This content has been marked as final.
Show 1 reply
-
1. Re: Queries work, persist does not work, in a Servlet
smokingapipe Dec 22, 2006 4:15 AM (in response to smokingapipe)Ha, I figured this out. I need to do
EntityTransaction transaction = entityManager.getTransaction(); transaction.begin(); entityManager.persist(...); transaction.commit(); entityManager.close();
Is that the right way to do it? It works!