You
can generate a data definition language (DDL) file for your
JPA project
About this task
To generate a DDL
file for a JPA project:
Procedure
- In the Package
Explorer view, right-click the JPA project and select .
- The JPA tools create a file
name Table.ddl in the META-INF directory
of your JPA project.
What to do next
You can use the
Table.ddl file to generate tables for your entity
beans in a database. To generate the tables:
- Right-click the
Table.ddl file and click .
- In the SQL File Editor, enter the connection profile information
(type,
name and database) at the top of the editor window.
- In the
editor, right-click and select Execute All.
- Check the SQL Results view to see if the table generation was
successful.