Examples of using Persistence unit in English and their translations into Portuguese
{-}
-
Colloquial
-
Official
-
Medicine
-
Financial
-
Ecclesiastic
-
Ecclesiastic
-
Computer
-
Official/political
using a Persistence Unit with JSF widgets,
Confirm that the persistence unit is using the Java Transaction API
you will create a persistence unit and use a wizard in the IDE to generate entity classes from the database.
To manage persistence in the application you only need to create a persistence unit, specify which data source
Confirm that the persistence unit is using the Java Transaction API
You also will also create a persistence unit to provide the container with information about the data source
graphic editors for creating and maintaining persistence units.
The'Create Persistence Unit' option is selected by default.
Also, note that the new persistence unit exists under the Configuration Files node.
in this exercise you will use the New Persistence Unit wizard to create the persistence. xml file.
For this application you will specify JTA in the New Persistence Unit wizard because you want the GlassFish server to manage the transactions.
the jdbc/affablebean data source has already been specified in the persistence unit.
In this section you will create an entity class and persistence unit and modify the session bean to inject the entity manager
A persistence unit consists of the set of entity classes, the data source, the persistence provider, and the persistence unit's own name, as defined in a persistence. xml file.
In this example the name of the persistence unit is declared explicitly, but the name is optional if the application has only one persistence unit.
The IDE provides a Design view for persistence units, in addition to the XML view.
Select Persistence Unit from the Persistence category.
Select Create Persistence Unit.
To create the persistence unit, perform the following steps.
The persistence unit is defined by a persistence. .