A.8. Install the Fixtures

Having built the database we need to populate the database. Unlike the in-memory object store, JPA Objects never loads fixtures at run time. Instead, we use the FixtureManager.

The steps for doing this is described in Section 7.4, “Run the Fixture Manager”, but the Maven archetype goes a little further by setting up some launch configurations for you. Use Run > Run Configurations... and locate the dba - Fixture Manager launch configuration; then Run. Rows representing the domain objects should be inserted into the database.

Note that all the FixtureManager does is to boot up Naked Objects with a special flag set so that JPA Objects does load the fixtures. The fixtures loaded will be those defined in nakedobjects.properties. If you want to load up a different set (for example, just the reference data) then provide a fixture set just for the data to be loaded.