This content has been marked as final.
Show 1 reply
-
1. Re: Detached Entity passed to persist
jaikiran Jan 14, 2009 7:49 AM (in response to mravikrish)When you return the entity back to the client from the bean, it becomes detached from the entitymanager. When you are passing the entity back to the bean, the second time, you have the option to call the
mergedEntity = entityManager.merge(entity);
to re-attach the detached entity.