openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Linskey" <>
Subject Re: usage of openjpa.xml
Date Thu, 16 Aug 2007 13:27:54 GMT
As you expected initially, it can be used for defaults. openjpa.xml is
loaded before any other configuration data is loaded, so the settings
in there will reset the normal defaults.

If you also provide overlapping settings in your persistence.xml, then
those will override the corresponding settings in openjpa.xml.


On 8/15/07, Das, Aditi <> wrote:
> Hi ,
> I am a bit puzzled about the usage of openjpa.xml.
> Initially I thought I can define the properties which are used commonly
> accross all <persistence-unit> here, and the specific
> properties for each unit in persistence.xml. But I immediately realized
> my mistake.
> openjpa.xml shares the same xsd as persistence.xml. So, in order to use
> it, I have to write the whole <persistence-unit> which will
> anyway be overwritten by data in persistence.xml.
> So, why and when do I open it ? Any pointers?
> Regards,
> Aditi

Patrick Linskey
202 669 5907

View raw message