O'Reilly logo

Spring Roo 1.1 Cookbook by Ashish Sarin

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

Scaffolding GWT applications from JPA entities

In this recipe, we'll look at the gwt setup command, which scaffolds GWT artifacts from JPA entities.

Getting ready

Create a new directory (C:\roo-cookbook\ch05-gwt) in your system. Copy the ch05_gwt_app.roo script that accompanies this book to the ch05-gwt directory. Start the Roo shell from the ch05-gwt directory and execute the ch05_gwt_app.roo script using the script command. Executing the ch05_gwt_app.roo script does the following:

  • Creates a flightapp-gwt Eclipse project
  • Sets up Hibernate as a persistence provider
  • Configures MySQL as the database for the application
  • Creates Flight and FlightDescription JPA entities and defines a many-to-one relationship between Flight and FlightDescription entities ...

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