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
setup command to configure a JPA persistence provider for a Roo project.
Create a sub-directory
ch02-recipes inside the
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
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.