users@glassfish.java.net

Re: persist entities across different databases

From: <glassfish_at_javadesktop.org>
Date: Mon, 09 Apr 2007 18:19:59 PDT

Hi Yves,

If you are asking about relationships between two or more entities as defined in the spec, then it's definitely beyond the spec, and even if there is a provider that can support such relationships, it will make your application non-portable, and all required information will need to be specified in that provider-specific way.

Now if you need an application that accesses non-related entities from 2 different databases, you'd need to specify 2 persistence units and use 2 separate EMs each referencing its own PU.

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

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