-
Book Overview & Buying
-
Table Of Contents
Google Web Toolkit 2 Application Development Cookbook
By :
Controller classes are used to simply manage/control the entities. Controller classes create the entity manager and use that manger to create, edit, delete, and find entities.
All the entity classes should be created before going to create the controller classes.
Go to File | New File….
Select Sales Processing System from Project drop-down list.
Select Persistence from the Categories list.
Select JPA Controller Classes from Entity Classes from the File Types list, as shown in the following screenshot:
![]() |
Click on Next.
Add all the available entity classes, except PurchaseDetails and SalesDetails.
![]() |
Click on Next.
Give com.packtpub.controller as the Package, as shown in the following screenshot:
![]() |
Click on Finish.
The steps we just executed create the JPA controller classes in the com.packtpub.controller package, and some exception classes in the com.packtpub.controller.exceptions package, as shown in the following screenshot:
![]() |
Change the font size
Change margin width
Change background colour



