users@glassfish.java.net

Re: Exception when merging two same entities.

From: <glassfish_at_javadesktop.org>
Date: Tue, 20 Mar 2007 05:28:57 PST

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