New Entity Classes from Database Wizard: Entity Classes

See Also

This wizard generates a set of entity classes from an existing database connection or schema. The IDE generates an entity class for each related table with persistent fields. The wizard takes you through the steps of choosing the database connection or schema, and then selecting the tables in the database that will be used to generate the entity classes. You can also use the optional mapping page to configure annotation elements that are generated in the entity class.

You open the wizard by right-clicking a project node or subnode and choosing New > Other, selecting the Persistence category and then selecting Entity Classes from Database.

In this page of the wizard you set the following:

From this page you can click Finish to create entity classes for each of the specified tables or click Next to modify the default settings used when generating the mapping annotations.

See Also
About Java Persistence
Generating Persistent Entity Classes from a Database
Creating a Persistence Unit

Legal Notices