img
mapped entities' metadata to construct the query, so any errors will be discovered at compile time
rather than runtime.
For a detailed discussion of JPA 2, we recommend the book Pro JPA 2: Mastering the Java Persistence
API (Apress, 2009).
In this section, we will discuss the basic concepts of JPA, the sample data model that will be used in
this chapter, and how to configure Spring's ApplicationContext to support JPA.
Creating a Simple Spring JPA Utility Project in STS
Let's create a JPA project in STS first. STS provides a template project called Simple Spring JPA Utility
Project. To create such a project in STS, simply select New Project Spring Template Project, choose
Simple Spring JPA Utility Project, and then enter the details for the project. Figure 10-1 shows the New
Template Project dialog box, and Figure 10-2 shows the project settings.
Figure 10-1. Creating a simple Spring JPA utility project in STS
Search WWH :
Custom Search
Previous Page
Spring Framework 3 Topic Index
Next Page
Spring Framework 3 Bookmarks
Home