Posts by Janio Xavier • 1 point
1 post
-
0
votes2
answers13323
viewsA: Entitymanager.merge() persisting instead of updating
Removing the old entity and persisting the new one also works. public void update(T u) { EntityManagerFactory f = Persistence.createEntityManagerFactory("crud"); EntityManager em =…