Introduction
Java Persistence API (JPA) provides a standard API for persisting Java objects to a relational database. The recipes in this chapter look at Roo commands that configure the data source and JPA provider (for example, Hibernate and OpenJPA), and Roo commands that create persistent entities of your enterprise application.
If you're using Spring only in the persistence layer, you'll see in this chapter how Roo can be used to quickly develop the persistence layer of your application. You'll notice that applications generated using Roo don't have a DAO (Data Access Object) layer because the domain entities generated by Roo are themselves rich in flavor, with finder and CRUD methods defined in the persistent entities. Also, Roo-generated applications don't have a service layer for abstracting business services (which in turn could access persistent entities). If you want to create a service layer for your enterprise application, it is left up to you to create services. You should create...