The JPA Controller Classes from Entity Classes wizard generates JPA controllers based on entity classes in your application. You open the wizard by opening the New File wizard and selecting JPA Controller Classes from Entity Classes in the Persistence category.
The wizard generates one JPA controller class for each entity class that you select and places the controller class in the specified location. Each generated JPA controller class contains create, edit and destroy methods and methods for retrieving the entities and uses an entity manager for managing entity persistence. The wizard also generates exception classes used by the controller classes.
In this panel of the wizard you select any entity classes from the available entity classes in the left pane and click Add. When you click Add, the entity classes you select are listed in the right pane. Any entity classes referenced by the entity classes you select are also listed in the right pane. An entity class is greyed to indicate that it is referenced by another entity classes. The IDE will automatically generate JPA controller classes for each of the entity classes listed in the right pane.
The following option is available in this panel of the wizard.
In the next panel of the wizard you specify the location for the generated JPA controller classes.