Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Spring Roo 1.1 Cookbook

You're reading from   Spring Roo 1.1 Cookbook Over 60 recipes to help you speed up the development of your Java web applications using the Spring Roo development tool

Arrow left icon
Product type Paperback
Published in Sep 2011
Publisher Packt
ISBN-13 9781849514583
Length 460 pages
Edition 1st Edition
Arrow right icon
Toc

Table of Contents (14) Chapters Close

Spring Roo 1.1 Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Getting Started with Spring Roo 2. Persisting Objects Using JPA FREE CHAPTER 3. Advanced JPA Support in Spring Roo 4. Web Application Development with Spring Web MVC 5. Web Application Development with GWT, Flex, and Spring Web Flow 6. Emailing, Messaging, Spring Security, Solr, and GAE 7. Developing Add-ons and Removing Roo from Projects Index

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

If you are using a different database than MySQL or your connection settings are different from what is specified in the script, then modify the script accordingly.

Install the Google Plugin for Eclipse IDE (http://code.google.com/eclipse/); it simplifies...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image