I have no recent experience with Dali. I did check their forum and found this post<http://www.eclipse.org/forums/index.php?t=msg&th=137720&start=0&S=f18de95875fc18ed86b89c8c9349a51c>which suggests it is (or was) a known limitation. A more thorough search may uncover more recent posts, or a way to workaround the problem.
This isn't an OpenJPA restriction - we support multiple persistence units defined in the same p.xml file. Someone else on this list might have more experience with Dali, but posting on their forum might get you to the answer quicker. Good luck, sorry I can't be of more help, -mike On Fri, Nov 19, 2010 at 3:23 AM, Alex, Huang <[email protected]> wrote: > 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 > >> > >> > >> > > > > >
