Databases Reference
In-Depth Information
Getting Started with
Spring Data JPA
This chapter gives us the basic knowledge that we need to set up a web application
project and manage our entities by using Spring Data JPA. In the course of this
chapter, we will learn:
• How to use Maven for downloading the required dependencies
• How to use programmatic configuration for configuring the Spring
application context
• How to configure our web application to load the Spring application context
by using programmatic configuration (without using web.xml )
• How to implement CRUD ( Create , Read , Update, and Delete ) functions for
an entity class with Spring Data JPA
Downloading dependencies with Maven
This topic covers the 1.2.0.RELEASE version of Spring Data JPA, which is the newest
available version during the authoring of this topic. The other components required
by Spring Data JPA are described in the following table:
Component
Description
Version
Data source
BoneCP is a fast connection pool library that is
used as a data source for our application.
0.7.1.RELEASE
JPA provider
A JPA provider is a library that implements the
Java Persistence API. We will use Hibernate as a
JPA provider.
4.1.4.Final
Search WWH ::




Custom Search