Answers for "Executing an update/delete query"

0

Executing an update/delete query

/* I received this exception when trying to run a bulk UPDATE query in a non-JTA
(i.e. resource-local) entity manager in Java SE. 
I had simply forgotten to wrap my JPQL code in*/

em.getTransaction().begin();

//and

em.getTransaction().commit();
Posted by: Guest on March-15-2021

Browse Popular Code Answers by Language