Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
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

Setting up a JPA provider for your project


In enterprise applications, data is persisted in one or more data stores. JPA provides a standard API for managing data in relational databases. In this task we'll look at the persistence setup command to configure a JPA persistence provider for a Roo project.

Getting ready

Create a sub-directory ch02-recipes inside the C:\roo-cookbook directory.

To set up a JPA provider, we first need to create a Roo project. To create a new Roo project, download ch02.roo file from the book's website and copy it to the ch02-recipes directory.

Open the command prompt and go to the ch02-recipes directory. Now, start the Roo shell and execute commands in ch02.roo script using the script command, as explained in the Creating application artifacts from a Roo script recipe of Chapter 1. Successful execution of the ch02.roo script creates a flight-app Eclipse project which you can import in your Eclipse IDE.

How to do it...

The following steps will demonstrate how to set up...

You have been reading a chapter from
Spring Roo 1.1 Cookbook
Published in: Sep 2011
Publisher: Packt
ISBN-13: 9781849514583
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