users@glassfish.java.net

Re: Primary key not updated in object after merge.

From: <glassfish_at_javadesktop.org>
Date: Mon, 21 Apr 2008 07:17:48 PDT

Hello,

The problem maybe due to merge returning the managed copy of what gets passed in. Since the objects passed into merge are not managed, they will not have the primary keys set - check the tree passed back from the merge operation after the flush instead.

Best Regards,
Chris
[Message sent by forum member 'chris_delahunt' (chris_delahunt)]

http://forums.java.net/jive/thread.jspa?messageID=270383