Generating Tables (DDL) from Entity Beans


Complete information will be available in a future build.

Use this procedure to generate DDL script (for database tables) from your persistent entities. You must establish a database connection before generating DDL files.

  1. Right-click the persistent project in the Package Explorer and select Java Persistence > Generate DDL.

    Generating DDL from Entities

    Using the Java Persistence > Add Java Persistence menu option.
  2. Complete the information on the Options page page of the Generate Database DDL from Entities Wizard and click Next.

    Generate DDL – Options page

    This figure shows the Options page of the Generate DDL wizard.
  3. Complete the information on the Objects page page of the Generate Database DDL from Entities Wizard and click Next.

    Generate DDL – Objects page

    This figure shows the Objects page of the Generate DDL wizard.
  4. Complete the information on the Save and Run DDL page page of the Generate Database DDL from Entities Wizard and click Next.

    Generate DDL – Save and Run page

    This figure shows the Save and Run page of the Generate DDL wizard.
  5. Review the information on the Summary page. If the information is correct, click Finish to generate the script. If not, click Back to change the necessary information.

 

Related task

Generating Entities from Tables

 

Related reference

Generate Database DDL from Entities Wizard

 

Related concept