-
Book Overview & Buying
-
Table Of Contents
Google Web Toolkit 2 Application Development Cookbook
By :
A persistence unit is a collection of properties that are used to manage and persist the entities. Persistence units are defined in the persistence.xml file, where each persistence unit must have a unique name.
The properties included in the persistence unit include the following:
A list of the entity classes
The library or the persistence provider
The data source used for persistent storage of the managed entities
The transaction type
Before following this recipe, the database connection jdbc:mysql://localhost:3306/Sales should be created.
Go to File | New File….
Select Sales Processing System from the Project drop-down list.
Select Persistence from the Categories list.
Select Persistence Unit from the File Types list, as shown in the following screenshot:
![]() |
Click on Next.
Leave the Persistence Unit Name as suggested.
Select EclipseLink from the Persistence Provider drop-down list.
Select New Data Source from the Data Source drop-down list.
In...
Change the font size
Change margin width
Change background colour
