Reverse engineering with NetBeans

The New Entity Classes from Database wizard is one of the most helpful and time-saving wizards in NetBeans. It generates a set of entity classes from an existing database connection, extracting and annotating all the fields and defining relationships between the classes. To access the wizard, navigate to File | New File. This will open the New File window, where you can then select the Persistence category followed by the Entity Classes From Database file type:

Reverse engineering with NetBeans

Click on Next to display the Database Tables screen where you can create a New Data Source:

This will allow you to enter the JNDI Name and to select the

Get Enterprise Application Development with Ext JS and Spring now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.