persistence@glassfish.java.net

Re: JOINs cross persistence units

From: Gordon Yorke <gordon.yorke_at_oracle.com>
Date: Wed, 30 Apr 2008 08:37:56 -0400

Section 4.3- "The domain of a query consists of the abstract schema
types of all entities that are defined in the same
persistence unit."

A Particular Persistence Unit can not be expected to know about
entities that are not defined within that Persistence Unit. This sort
of functionality would be in conflict with the same Entity being used
in multiple Persistence Units .

 -- Gordon

Markus KARG wrote:
> Will JOINs work across persistence units?
>
> Can someone point me to that part of the spec that allows or forbids
> JOINs between entities located in different persistence units?
>
> Thanks
> Markus
>