Posts by Arthur Vinicius • 63 points
1 post
-
6
votes2
answers13323
viewsQ: Entitymanager.merge() persisting instead of updating
Update method: public void update(T u) { EntityManagerFactory f = Persistence.createEntityManagerFactory("crud"); EntityManager em = f.createEntityManager(); em.getTransaction().begin();…