JPA with Spring Boot
During this training, we will learn how to use the Spring Boot Framework for connection to databases using JPA (Java Persistence Framework). In this three-day ABIS course, the participant will understand what features Spring Boot adds to standard JPA to simplify DB interaction.
JPA is one of Java's persistence frameworks in order to access relational data in an effective way. It offers a complete object-relational mapping solution to this end.
In this course you will learn how to:
- use JPA repositories
- map Java model classes on RDBMS tables
- make DB interactions more efficient while using JPA
- use transaction handling
Schedule a training?
Delivered as a live, interactive training: available in-person or online, or in a hybrid format.
Training can be implemented in English, Dutch, or French.
If interested in organising this training internally, get in touch with us; we can even customise it to meet your specific needs.
REQUEST IN-COMPANY TRAINING |
Public training calendar | |||||
---|---|---|---|---|---|
date | dur. | lang. | location | price | |
18 Jun | 3 | Leuven | 2055 EUR (excl. VAT) | ||
18 Jun | 3 | web based | 2055 EUR (excl. VAT) | ||
03 Dec | 3 | web based | 2055 EUR (excl. VAT) | ||
03 Dec | 3 | Leuven | 2055 EUR (excl. VAT) | ||
SESSION INFO AND ENROLMENT |
Intended for
Architects, designers and programmers who are interested in object-relational mapping, using Spring and JPA.
Background
Knowledge of Java programming (see course Java programming), Spring fundamentals (see course Spring fundamentals) and relational databases (see course SQL and relational databases fundamentals) is required.
Main topics
- Introduction to ORM and JPA
- Persisting objects • O/R mapping (ORM) • Features of persistence mechanisms • (Spring Boot) JPA
- Configuration
- Configuring data sources • Simplifications from Spring Boot • Extra configuration options
- Basic O/R Mapping and JPA repositories
- Mapping concepts • Class to table mapping • Object identity • Property mapping
- JPA repositories • Repository interfaces and Query methods • Spring Data JUnit testing
- Mapping Associations
- Value types • One class for two tables
- Association mapping : one-to-one, many-to-one, one-to-many, many-to-many
- Cascade and fetching strategies
- Querying
- @Query • JPQL (JPA Query Language) • Named and native queries
- Changing the "select" object • Using DTOs and mappers
- Transactions and Exception Handling
- Exception Handling • Modifying queries
- Transaction definitions • Declarative and programmatic transactions
- Advanced Topics
- Mapping collections • Hierarchy mapping • Advanced fetching strategies • Caching
Training method
Lecture and hands-on exercises. The participants will work with Java applications accessing H2 and Oracle databases.
Certificate
At the end of the session, the participant receives a 'Certificate of Completion'.
Duration
3 days.
Course leader
Sandy Schillebeeckx (ABIS).
Reviews
trainer was well prepared. course and content was very useful. issue was with the vm being slow which slowed down the pace and killed the mojo.
| (Anitha Raj, ING België, ) |
Cours très complet et bien donné mais 2 jours était trop peu.
| (N.N., ) |
I learned some stuff but not as enough as I expected
| (Bruno Grilli, ING België, ) |
Super intéressant. J'ai suivi le deuxième jour et j'ai vraiment apprécié
| (Ayoub Hammou, ING België, ) |
Also interesting
Enrollees for this training also took the following courses:
SESSION INFO AND ENROLMENT |