Generating Session Beans for Entity Classes
See Also
You use the Session Beans for Entity Classes wizard to generate session beans for entity classes.
In the wizard you choose the entity classes in your project for which you want session beans.
The wizard creates a session facade as well as the selected interfaces for the selected entity class.
To generate session beans from entity classes:
- Right-click the module project node in the Projects window and choose New > Other.
- In the New File wizard, select Session Beans for Entity Classes from the Persistence category.
- Select any entity classes from the list in the left pane and click the Add button.
Any referenced entity classes are automatically added to the list in the right pane.
The IDE will generate session beans for each entity class listed in the right pane.
- Deselect Include Referenced Classes if you do not want session beans created for referenced classes.
- Click Next.
- Select the location where you want to save the session beans.
- Select an existing package from the Package drop-down menu or type the name of a new package.
- Select the session facade interfaces that you want the wizard to generate.
- Click Finish.
When you click Finish, the IDE creates session beans for each of the entity classes you specified in the wizard.
- See Also
- Working with Enterprise Applications
- About Session Beans
- About Java Persistence
- Creating a Persistence Unit
Legal Notices