openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Sutter <>
Subject Re: Configuration extension
Date Mon, 27 Aug 2012 16:44:21 GMT
Hi Fabio,
Unfortunately, OpenJPA doesn't have great documentation for extending the
configuration.  Although, in practice, it is quite easy to do.  What I
would suggest doing is "implement by example" and look at how other
configuration properties were incorporated.  For example, let's just take
openjpa.datacache as an example.  All of the configuration properties use a
"plugin configuration" [1].  Then, if you look at the
OpenJPAConfigurationImpl class, you'll see how this openjpa.datacache is
parsed and configured.  From there, these configuration values are used
through out the code (grep for "dataCachePlugin" as an example).

Hope this helps get you started.



On Fri, Aug 24, 2012 at 10:32 AM, Fabio Martelli

> Hi All,
> I'd like to extend OpenJPA configuration in order to add some custom
> parameters into my persistence.xml.
> Could you give me the best practice to do this?
> Thank you in advance.
> Best regards,
> F.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message