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 entity classes from the database

In this recipe, we are going to create all entity classes of the Sales database automatically by using some easy steps in a wizard.

Getting ready

The persistence unit should be created before going to create entity classes.

How to do it...

  1. Go to File | New File.
  2. Select Sales Processing System from the Project drop-down list.
  3. Select Persistence from the Categories list.
  4. Select Entity Classes from Database from the File Types list, as shown in the following screenshot:
    How to do it...
  5. Click on Next.
  6. Select sales from the Data Source field.
  7. Click on the Add All>> button to select all the available tables:
  8. Click on Next.
  9. Check the suggested ...

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