Spring Framework: Data Access with Spring


Spring Framework: Data Access with Spring

Authors: Andrew Morgan, Bryan Hansen, Dan Bunker, Dan Geabunea

Spring Data provides a familiar and consistent, Spring-based programming model for data access while still retaining the special traits of the underlying data store. It makes it... Read more

In this path, you will learn: The use of Spring Data and how it helps you build data access layers Creating data access code using Spring data to access a JDBC (relational) database Creating a data access layer for an application using Spring JPA Using Spring Data MongoDB to access a MongoDB datastore


Java Maven


This segment has been created to provide an introduction to the Spring Data and Spring Data JDBC

In this introductory section, you will learn things such as how transactions work in Spring Data, what a repository interface is and how repositories are used in Spring Data and how to differentiate between when you would use Spring Data JDBC, Spring Data JPA.

Spring Framework: Overview of Spring Data

by Andrew Morgan

Dec 6, 2019 / 58m


Start Course

Writing data access code often involves lots of boilerplate, most of which tends to be inconsistent across different types of data stores. In this course, Spring Framework: Overview of Spring Data, you'll learn about how Spring Data can be used to make data access easier. First, you'll learn how to easily set up a Spring Data project using a Spring Boot Starter. Next, you'll discover how to use Spring Data repositories to easily query data in a data-store agnostic manner. Finally, you'll explore how to manage transactions using Spring. When you're finished with this course, you'll have the skills and knowledge of Spring Data needed to get started with any Spring Data module.

Table of contents
  1. Course Overview
  2. What Is Spring Data?
  3. Querying Data with the Repository Interface
  4. Working with Transactions

Building Applications Using Spring JDBC

by Bryan Hansen

Jun 4, 2021 / 2h 30m

2h 30m

Start Course

Interacting with a database in Java applications has been a challenge for a long time, with developers wondering the best practices for doing so. In this course, Building Applications Using Spring JDBC, you'll learn how to use the Spring JDBC framework to implement the CRUD functions of your application. First, you'll dive into understanding the CRUD functions of data access and retrieval, along with batch operations. Next, you'll discover how to implement the other best practices of Spring such as RESTful services, design patterns, and multi-tier development. Finally, you'll cover exception handling and transactions. The functionality of this course will be tested through unit tests and web services that could also be consumed through a Javascript UI, such as Angular or React. By the end of this course, you'll know how to effectively use Spring JDBC to interact with your data in your applications.

Table of contents
  1. Course Overview
  2. Introduction
  3. Setting up the JDBC Project
  4. Creating Records in the Database
  5. Reading Records from the Database
  6. Updating Records in the Database
  7. Deleting Records from the Database
  8. Exceptions and Transactions


This intermediate section explores the Spring Data JPA. Learn about its advantages and limitations, attributes and XML configuration, implementing repository objects in Spring Data JPA and why repositories are implemented as interfaces.

Spring Framework: Spring Data JPA

by Dan Bunker

Jun 30, 2020 / 2h 30m

2h 30m

Start Course

Spring Data JPA is a data access layer framework that can greatly increase developer productivity. In this course, Spring Framework: Spring Data JPA, you will be introduced to the framework of Spring. Next, you will witness a demonstration of how to install it. Finally, you will spend some time working with some real world examples. When you are finished with this course, you will have an understanding of Query annotations and custom repositories. Prior experience with JPA and Spring will be beneficial to get the most out of this course.

Table of contents
  1. Course Overview
  2. Getting Started
  3. Spring Data JPA Repositories
  4. Query DSL Overview
  5. More Fun with Queries
  6. Advanced Features

Spring Framework: Spring Data JPA with Hibernate

by Bryan Hansen

Mar 19, 2021 / 3h 10s

3h 10s

Start Course

This course walks through developing applications using Spring with JPA and Hibernate. There is a scaffold application using Spring MVC. The material will be developed using Eclipse/Spring STS and all downloads will be done using Maven.

Table of contents
  1. Course Overview
  2. Spring, the Java Persistence API (JPA), and Hibernate
  3. Download and Walkthrough of the Spring MVC Java App
  4. Architecture Walkthrough of a Spring JPA / Hibernate Application
  5. Recap of Spring Concepts that Are Used in This Course
  6. Configuration of Spring and JPA for Development
  7. Overview of JPA and Creating Your First Entity
  8. JPA Annotations and How to Use Them
  9. How to Configure and Use Spring Data JPA


This section focuses on using Spring Data MongoDB to access a MongoDB data store. Among other things, you will learn how to use Spring Data MongoDB to access a MongoDB datastore and configure an application to use Spring MongoDB as a data source.

Spring Framework: Spring Data MongoDB

by Dan Geabunea

Feb 20, 2020 / 2h 46m

2h 46m

Start Course

Using MongoDB in enterprise applications can be a little bit scary for most developers. Programmers have worked with relational models so much that they don’t imagine a better way to tackle persistence. In this course, Spring Framework: Spring Data MongoDB, you will learn how to implement all aspects of Mongo data persistence using Spring. First, you will learn how to connect to a Mongo database and perform CRUD operations. Next, you will discover how to make your DAL cleaner, by using repositories. After that, you will find out how to create relationships between documents. Finally, you will explore how to properly handle data migrations and create Mongo integration tests. When you are finished with this course, you will have the skills and knowledge needed to efficiently use Mongo DB in enterprise Spring applications.

Table of contents
  1. Course Overview
  2. Connecting to MongoDB
  3. Implementing Queries
  4. Inserting, Updating, and Deleting Documents
  5. Making the Data Persistence Layer Cleaner with Repositories
  6. Understanding Document References, Lifecycle, and Cascading
  7. Applying Migrations to Existing Data Stores
  8. Testing the Data Access Layer
Offer Code *
Email * First name * Last name *
Country *

* Required field

Opt in for the latest promotions and events. You may unsubscribe at any time. Privacy Policy

By providing my phone number to Pluralsight and toggling this feature on, I agree and acknowledge that Pluralsight may use that number to contact me for marketing purposes, including using autodialed or pre-recorded calls and text messages. I understand that consent is not required as a condition of purchase from Pluralsight.

By activating this benefit, you agree to abide by Pluralsight's terms of use and privacy policy.

I agree, activate benefit