The issue is most likely an oversite on new object merge behaviour. Because the Entity with id 1 has not be flushed to the database TopLink is assumming that the second instance is new. A flush() between those 2 merge calls should work around this issue.
--Gordon
[Message sent by forum member 'gyorke' (gyorke)]
http://forums.java.net/jive/thread.jspa?messageID=208930