img
Figure 10-3. Simple Spring JPA utility project Maven dependencies
As you can see from Figure 10-3, Spring defaults to using Hibernate as the JPA provider for the JPA
template project. Another step you need to take is to update the pom.xml file to use JDK 6 as the target
runtime and update the project's configuration. Make sure the project is using Spring 3.1.
At the time of this writing, the JPA template project will add Hibernate version 3.6.0.Final as the
dependency. Please change it to 3.6.8.Final within the pom.xml file, since the newer version provides bug
fixes to the samples discussed in this chapter.
Sample Data Model for Example Code
In this chapter, we will use the same data model as Chapter 9. However, when we discuss how to
implement the auditing features, we will add a few columns and a history table for demonstration. So,
we will start with the same database creation scripts used in the previous chapter.
If you skipped Chapter 9, take a look at the data model presented in that chapter's "Sample Data
Model for Example Code" section, which can help you understand the sample code in this chapter.
Search WWH :
Custom Search
Previous Page
Spring Framework 3 Topic Index
Next Page
Spring Framework 3 Bookmarks
Home