users@glassfish.java.net

Re: Basic JPA Question

From: <glassfish_at_javadesktop.org>
Date: Wed, 17 Oct 2007 18:22:27 PDT

Aren't you saying that the child object has an ID?

Also, you don't need the remove to update - merge should work fine (unless you nullify the ID of a detached instance).

And one more - there are various types of auto-generated identity described in the spec, amd some of them allow provider to get a chunk of IDs in a single database access, then use them as needed.

HTH,
-marina
[Message sent by forum member 'mvatkina' (mvatkina)]

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