users@glassfish.java.net

Re: JPA Persisting Problem with sub objects

From: <glassfish_at_javadesktop.org>
Date: Sat, 08 Sep 2007 14:25:15 PDT

It's the Address that I was having problems with... I didn't try an actual merge on a new AccountAddress object... But that makes sense... And I'll be able to get the PK back.

So far, in order to make it actually work, I had to get the account object itself, associate the other objects correctly, and merge the account. I also get the correct ID back of the AccountAddress object.
[Message sent by forum member 'a1programmer' (a1programmer)]

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