Hi,
Your error is assuming that em.merge is a void method, but it is not - it returns you back a managed instance that you can use for further operations. That's why what you think as a work around, is actually the right way to do the task.
Regards,
-marina
[Message sent by forum member 'mvatkina' (mvatkina)]
http://forums.java.net/jive/thread.jspa?messageID=209916