Generating tables (DDL scripts) from entities |
Use this procedure to generate DDL script (for database tables) from your persistent entities. You must establish a database connection before generating DDL files.
Right-click the persistent project in the Package Explorer and select Java Persistence > Generate DDL.
Complete the information on each page of the .
Refer to the "Using web tools" section of the Web Application Development Guide for additional information.
Complete the information on the page of the and click Next.
Complete the information on the page of the and click Next.
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.