Spring Framework: Data Access with Spring

Paths

Spring Framework: Data Access with Spring

Authors: Andrew Morgan, 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

Pre-requisites

Java Maven

Beginner

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

58m

Start Course
Description

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

Intermediate

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
Description

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

Advanced

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
Description

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