The model and NexJ Studio ship with the ability to create a new database and load sample data.
To create a new database, use the Database Schema Tool in NexJ Studio, select an appropriate Environment, and run the Setup command. The tool will generate a create database script as output based on the Database type (MSSQL, Oracle, DB2…) along with the connection information specified in your environment file. Open up your database management console and run the script.
To load the database, run the Database Load Tool in NexJ Studio. Select the appropriate Environment, which should specify a user that has DDL rights for the database, and use the Recreate command. To load the sample data, ensure that the sampleData attribute in the root of the Environment us set ti true.
The entire process is described in the online training available at community.nexj.com.