Try using the EntityManager.merge method – this is very similar.
There is an excellent description of the differences in Xebia’s blogpost: “JPA Implementation Patterns: Saving (Detached) Entities.”
Try using the EntityManager.merge method – this is very similar.
There is an excellent description of the differences in Xebia’s blogpost: “JPA Implementation Patterns: Saving (Detached) Entities.”