| <html><head> |
| <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
| <title>2. Metadata Repository</title><link rel="stylesheet" href="css/docbook.css" type="text/css"><base href="display"><meta name="generator" content="DocBook XSL Stylesheets V1.72.0"><link rel="start" href="manual.html" title="Apache OpenJPA 2.1 User's Guide"><link rel="up" href="ref_guide_meta.html" title="Chapter 6. Metadata"><link rel="prev" href="ref_guide_meta.html" title="Chapter 6. Metadata"><link rel="next" href="ref_guide_meta_jpa.html" title="3. Additional JPA Metadata"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">2. Metadata Repository</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ref_guide_meta.html">Prev</a> </td><th width="60%" align="center">Chapter 6. |
| Metadata |
| </th><td width="20%" align="right"> <a accesskey="n" href="ref_guide_meta_jpa.html">Next</a></td></tr></table><hr></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ref_guide_meta_repository"></a>2. Metadata Repository</h2></div></div></div><p>The openjpa.MetaDataRepository configuration property controls the configuration of |
| the MetaDataRepository. The following are valid properties:</p><div class="itemizedlist"><ul type="disc"><li><p> |
| <code class="literal">Preload</code>: A boolean property. If true, OpenJPA will eagerly load the repository on |
| EntityManagerFactory creation. As a result, all Entity classes will be eagerly loaded by the JVM. |
| Once MetaData preloading completes, all locking is removed from the MetaDataRepository and this will |
| result in a much more scalable repository. If false, the repository will be lazily loaded as Entity |
| classes are loaded by the JVM. The default value is false. |
| </p></li></ul></div><div class="example"><a name="ref_guide_meta_repo"></a><p class="title"><b>Example 6.3. </b></p><div class="example-contents"><pre class="programlisting"> |
| <property name="openjpa.MetaDataRepository" value="Preload=true"/> |
| </pre></div></div><br class="example-break"></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ref_guide_meta.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ref_guide_meta.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="ref_guide_meta_jpa.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter 6. |
| Metadata |
| </td><td width="20%" align="center"><a accesskey="h" href="manual.html">Home</a></td><td width="40%" align="right" valign="top"> 3. |
| Additional JPA Metadata |
| </td></tr></table></div></body></html> |