7.2. Automatic Runtime Mapping

You can configure Kodo to automatically create O/R mapping information and the database schema at runtime through the kodo.jdbc.SynchronizeMappings configuration property. Using this property saves you the trouble of running the mapping tool manually, and is meant for use during rapid test/debug cycles.

In order to enable automatic runtime mapping, you must first set the kodo.PersistentClasses property to include all the persistent classes. Kodo will run the mapping tool on these classes when your application obtains its first persistence manager.

The kodo.jdbc.SynchronizeSchema configuration property accepts the following values: