persistence@glassfish.java.net

Re: JOINs cross persistence units

From: Markus KARG <markus.karg_at_gmx.net>
Date: Wed, 30 Apr 2008 19:49:18 +0200

I understand. So a query using entities from different persistence units
wouldn't compile at all, I think.

Thanks a lot for the explanation! :-)

Markus

Gordon Yorke schrieb:
> 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
>>
>


-- 
http://www.xing.com/go/invita/58469