O'Reilly logo

Google Web Toolkit 2 Application Development Cookbook by Shamsuddin Ahammad

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating controller classes

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.

Getting ready

All the entity classes should be created before going to create the controller classes.

How to do it...

  1. Go to File | New File.
  2. Select Sales Processing System from Project drop-down list.
  3. Select Persistence from the Categories list.
  4. Select JPA Controller Classes from Entity Classes from the File Types list, as shown in the following screenshot:
    How to do it...
  5. Click on Next.
  6. Add all the available entity classes, except PurchaseDetails and SalesDetails.
  7. Click ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required