# New JPA Controller Classes from Entity Class Wizard: Entity Classes

Use to generate a JPA controller class for an entity class. 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.

Element | Description
--- | ---
Include Referenced Classes | Deselect this if you do not want JPA controller classes created from referenced entity classes.

In the next panel of the wizard you specify the location for the generated JPA controller classes.

Related Topics

Developing Applications with NetBeans IDE,

Copyright © 2016, Oracle and/or its affiliates. All rights reserved.