Objectives of the training
Master the implementation of the Repository pattern with Spring Data to design a clear, extensible data access layer that can be integrated into a modern application architecture.Targeted audience
Developers and architects.Prerequisite
This course requires a sound knowledge of the basics of Java programming (principles of object-oriented programming, generic types, annotations, lambda expressions), Spring and Spring boot and experience of working with Eclipse or IntelliJ.Trainers
Benefits for Participants
- Declaring a Spring Data repository;
- Enriching a repository with custom queries;
- Use repositories in the business layer of an application;
Exposing repositories in the form of a REST API.
Course architecture
Introduction
The different types of database (SQL, NoSQL).
Non-blocking execution of I/O operations.
The role of a connection pool.
Transactions and ACID principles.
Object/database mapping.
Presentation of the Repository pattern and Spring Data.
Practical application: getting to grips with a Spring application (data access, REST API, testing).
Spring Data repositories
Mapping model entities to the database using Spring annotations.
Create, read, update and delete operations.
Pagination and classification for paginated queries.
Example queries for multi-criteria searches.
Derived queries for customized searches.
@Query annotation for native queries.
Application of transactions.
The specifics of two Spring Data variants: Spring Data JPA and Spring Data ElasticSearch.
Practical application: creating JPA and ElasticSearch repositories, using them in a backend application.
The Spring Data REST extension
Principle.
Projections to control resource representation.
Searches.
Error handling and mapping to HTTP code.
Event observers.
Practical application: using Spring Data REST to expose repositories in REST.
Pedagogical details
Training architecture
Explanation, for each concept, of the problem it claims to solve, Putting a concept into practice immediately after it has been presented, Validation of each step by execution of unit tests, Exercise “fil rouge” to obtain a complete application at the end of the course, End-of-chapter MCQs to ensure knowledge acquisition.
Type of training
Private or personalized training
If you have more than 8 people to sign up for a particular course, it can be delivered as a private session right at your offices. Contact us for more details.
Request a quotePrivate or personalized training
If you have more than 8 people to sign up for a particular course, it can be delivered as a private session right at your offices. Contact us for more details.
Request a quote