Creating Database Schema for the EJB Builder

Capturing Database Schema

You can use the IDE's Database Schema wizard to capture the database schema.

NOTE - It may be necessary to ensure that database server driver is installed into the IDE. For the PointBase server, this requires:
  1. Copy the file: install_dir/pointbase/client_tools/lib/pbclient42RE.jar into the directory install_dir/forte4j/lib/ext.
  2. Restart the IDE.

To create the database schema:

  1. Somewhere on your file system, create a directory and in the IDE mount the new filesystem.
  2. Right-click the new filesystem and choose New -> Databases -> Database Schema.
  3. In the New wizard, complete the Name field and click Next.
  4. The Database Connection pane opens.

  5. Click either Existing Connection or New Connection.
  6. Click Next, and in the Tables and Views pane select the LeagueBeanTable, TeamBeanTable, PlayerBeanTable, and TeamPlayerTable tables in the Available Tables and Views list on the left.
  7. Click Add.
  8. The selected tables appear in the Selected Tables and Views list on the right.

  9. Click Finish.
  10. The IDE saves the captured schema in XML format and displays a node for it in the filesystem.

See also
Creating Related CMP Entity Beans with the EJB Builder

Legal Notices