Gotcha, thanks for for clarifying.

On Mon, 2011-05-02 at 10:35 -0700, Jim O'Rourke wrote:
> The way OpenJPA bootstraps, persistence.xml wins over System.properties.
> 
> Pass a map like so Persistence.createEntityManagerFactory("your_pu_name",
> propertyOveridesMap).
> 
> If you need to override for say test versus production, you can move your
> properties from persistence.xml to openjpa.xml, see 
> http://openjpa.apache.org/builds/2.0.1/apache-openjpa-2.0.1/docs/manual/ref_guide_conf_specify.html
> http://openjpa.apache.org/builds/2.0.1/apache-openjpa-2.0.1/docs/manual/ref_guide_conf_specify.html
>  
> 
> --
> View this message in context: 
> http://openjpa.208410.n2.nabble.com/How-to-override-a-property-in-persistence-xml-tp6324365p6324624.html
> Sent from the OpenJPA Users mailing list archive at Nabble.com.


Reply via email to