7.4. Run the Fixture Manager

The way that different object stores handle fixtures depends on their implementation. The in-memory object store always loads fixtures, the XML object store loads fixtures only if they haven't been run but (by detecting the xml directory that it creates) ignores them second time around.

JPA Objects though is more conservative: it never loads up fixtures in runtime. The rationale is that seeding the database with initial data is an activity that you/your DBA should have visibility over.

Most likely though, you will have some fixtures (those for immutable reference data/static data objects) which should be loaded in. To support this, you can run the fixture manager tool (org.starobjects.jpa.tools.FixturesManager) that comes with JPA Objects. It takes the following arguments:

After this, you should have a populated database. If you mess up, you can always recreate the database using the schema manager (see Section 7.3, “Run the Schema Manager”).