Thanks, Rick. I can understand the problem is caused by Eclipse tool.
But would someone tell me how to avoid this problem? Did someone experience 
the same problem?

Thanks,
Alex,Huang
----- Original Message ----- 
From: "Rick Curtis" <[email protected]>
To: <[email protected]>
Sent: Thursday, November 18, 2010 11:07 PM
Subject: Re: Work with multiple persistence unit.


> It sounds like these messages are coming from Eclipse tooling[1] ? OpenJPA
> supports multiple PUs, but it sounds like Dali may have some issues with
> it...
>
> [ From [1] ]
>
> We need to convey to the user that only one PU is going to be recognized 
> for
> Dali functionality.  Any Entities defined in additional PU's will now be
> treated like they are in the 1 recognized PU for the purposes of defaults,
> validation, etc.  These unrecognized Entities will be marked with an 
> Error,
> informing the user that they are not listed in the recognized PU.
>
> [1]https://bugs.eclipse.org/bugs/show_bug.cgi?id=231527
>
> Thanks,
> Rick
>
> On Thu, Nov 18, 2010 at 8:47 AM, Alex, Huang <[email protected]> wrote:
>
>> Rich,
>>
>> Thanks for your reply.
>> > What are you trying to do when you get these warning messages?
>> I ignored the warning message and generated some entities. So the 
>> entities
>> defined in previous persistence unit arised the following compile errors,
>> "Class "xxxxx" is mapped, but is not included in any persistence unit"
>> "Table "xxxxx" cannot be resolved"
>>
>> > Can you please include the full warning message(s)?
>> Warning message is just one sentence,
>> "Multiple persistence units defined - only the first persistence unit 
>> will
>> be recognized".
>>
>> > Are you using container managed or application managed?
>> I am using application managed.
>>
>> Thanks,
>> Alex,Huang
>> ----- Original Message -----
>> From: "Rick Curtis" <[email protected]>
>> To: <[email protected]>
>> Sent: Thursday, November 18, 2010 10:13 PM
>> Subject: Re: Work with multiple persistence unit.
>>
>>
>> > What are you trying to do when you get these warning messages? Can you
>> > please include the full warning message(s)? Are you using container
>> > managed
>> > or application managed?
>> >
>> > Thanks,
>> > Rick
>>
>>
>>
> 


Reply via email to