EJB JAR file -> Relationships tabbed pane -> Sun-specific Settings button -> Sun-specific Settings -> CMP Database view -> Create Database Mappings button
OrEnterprise Bean -> General tabbed pane -> Sun-specific Settings button -> Sun-specific Settings -> CMP Database view -> Create Database Mappings button
OrEnterprise Bean -> Entity tabbed pane -> Sun-specific Settings button -> Sun-specific Settings -> CMP Database view -> Create Database Mappings button
OrEJB JAR File -> General tabbed pane -> Sun-specific Settings button -> Sun-specific Settings -> CMP Database view -> Create Database Mappings button
This dialog box allows you to create database mappings and display the result in the CMP Settings dialog box using one of these two methods:
If you select the Automatically Generate Necessary Tables option, you must also choose the vendor of the database that will be used to persist the classes in the EJB module.
Supported database vendor list contains the following database vendor names:
To generate unique table names, check the Generate Unique Table Names option.
If you select Map to Tables in Database Schema File option, you must provide the name of a database schema file in the EJB JAR that describes the database tables that will be mapped. The Database Schema File list contains the list of database schema (.dbschema) files in the EJB JAR.
NOTE: If the desired schema file is not in the list, you must create the schema file and package it in the EJB JAR. To create a database schema file, use the asadmin> capture-schema command line tool. For more information on creating a database schema file, see the Sun Java System Application Server Administrator's Guide.
Sun-specific Settings - CMP Database
Relationship Mapping Editor Overview