New Persistence Unit Wizard
See Also
This wizard generates a persistence unit for your module.
In this wizard you supply information that will be used to enable the persistence of your entity classes.
The properties of the persistence unit are stored in persistence.xml,
which is located in the src/conf directory of your project.
You open the wizard by right-clicking a
web or EJB module project node and choosing New File/Folder, selecting the Persistence category and then selecting Persistence Unit.
In the New Persistence Unit wizard, you specify the following:
- Persistence Provider. The persistence provider supplies the functionality for managing entities.
The IDE comes bundled with the TopLink Essentials persistence provider.
Choose New Persistence Library to specify a different persistence provider.
- Data Source. The data source specifies the connection information for your database.
- Use Java Transaction APIs. Specifies the transaction type. If selected, the transactions
involving the entity manager are set to JTA and managed by the container. If not selected, the transaction type
is set to resource-local and managed by the application.
- Table Generation Strategy. Specifies the type of table generation for your database.
- See Also
- Creating a Persistence Unit
- About Persistence Units
- About Java Persistence
Legal Notices