New Persistence Unit Wizard
See Also
This wizard generates a persistence unit for your project.
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.
After persistence.xml is created, you can open the file by double-clicking
persistence.xml in the Projects window.
In a web or enterprise application, persistence.xml is located under the Configuration Files node in the Projects window or
in the src/conf directory in the Files window.
You open the wizard by right-clicking the
project node in the Projects window and choosing New > Other, 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