Entitymanager merge not updating record
Check you merge cascading, you may be merging the same object twice, and only one of the copies may have your changes.
Print the objects data before and after calling merge to ensure it was merged correctly.
I will make a project example to send here, but this week I have not time...
New to JPA so I'm trying to figure out how best to do it.
Thanks, mike When using JPA let the Entity Manager to manage the entity objects. Also calling merge method explicity is not required, this because: When using Container Managed Persistance context, the lifecycle of entity bean is managed by EM.
For an introductory article to Hibernate, visit our tutorial on Hibernate 4 with Spring. We should also understand the history of Hibernate development that led to some partly duplicated API methods.
Apart from object-relational mapping itself, one of the problems that Hibernate was intended to solve is the problem of managing entities during runtime.