This chapter describes the Kodo configuration framework. It concludes with descriptions of all the configuration properties recognized by Kodo. You may want to browse these properties now, but it is not necessary. Most of them will be referenced later in the documentation as we explain the various features they apply to.
Kodo JPA/JDO supports both JPA and JDO configuration
styles. JPA utilizes the XML format described in
Section 6.1, “persistence.xml” of the JPA
Overview. JDO uses standard Java properties files.
Specify your Kodo configuration options in the format native to the
specification you are working with. If you are working with both
JPA and JDO in the same application, use the configuration format of
the specification you use most. JPA and JDO have
different standard settings for many properties - for example, JPA
looks for entity metadata in annotations, while JDO looks
for metadata in
The format of your configuration files determines Kodo's default
values for these specification-dependent settings.
You can explicitly declare specification-dependent settings such that a JDO properties file configures Kodo for JPA defaults, or an JPA XML file configures Kodo for JDO defaults. However, it is more robust to use the configuration format native to the desired specification.