Hi Adam,
Something like this should work :
<persistence-unit name="mypu">
<mapping-file>orm1.xml</mapping-file>
<mapping-file>orm2.xml</mapping-file>
. . .
</persistence-unit>
Is this what you're looking for?
-Mike
On Dec 18, 2007 5:59 AM, Adam Hardy <[EMAIL PROTECTED]> wrote:
> I'm getting nowhere trying to massage my persistence.xml into something
> that
> validates and at this point I'm getting spurious errors from Eclipse about
> the
> well-formedness of the XML, so I'll ask here to see if anyone's got an
> example
> to hand.
>
> I would like to include a list of mapping files in multiple places in my
> persistence.xml (once in each persistence unit). I tried several different
> ideas
> from the web, but I haven't got anything to validate in my XML editor yet.
>
> i.e. I have a list like this:
>
>
> <mapping-file>org/permacode/patternrepo/orm/Category.xml</mapping-file>
> <mapping-file>org/permacode/patternrepo/orm/Market.xml</mapping-file>
> <mapping-file>org/permacode/patternrepo/orm/Code.xml</mapping-file>
>
> <mapping-file>org/permacode/patternrepo/orm/TestResult.xml</mapping-file>
>
> <mapping-file>org/permacode/patternrepo/orm/TradingParam.xml</mapping-file>
>
> which I want to include - I'd be really grateful if someone could tell me
> the
> xml syntax for the include?
>
> Thanks
> Adam
>