Thanks for the reply Markus.
That works fine on the server side. In my case I'm using an application client and end up calling EntityManager.merge()
via a remote interface. My application client is not on the same machine as the server and I don't know of an easy way
to determine and update the newly generated ids for the detached Entity beans that are on the client if I use
CascadeType.PERSIST.
Ryan
Markus Fuchs wrote:
> Hi Ryan,
>
> the Ids for both Author and Book are generated automatically by the
> Persistence Provider, as you specified SEQUENCE Id generation. Just
> specify CascadeType.PERSIST on the Author side of the relationship.
>
> Thanks,
>
> -- markus.
>