JPA with Spring Boot
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. Spring Boot will help you making it even more efficient, by adding JPA repositories, and by simplifying the configuration.
The purpose of this course is to show the participant how a Java application can be mapped to a relational database schema with the use of Spring Boot and JPA.
No public sessions are currently scheduled. We will be pleased to set up an on-site course or to schedule an extra public session (in case of a sufficient number of candidates). Interested? Please contact ABIS.
Architects, designers and programmers who are interested in object-relational mapping, using Spring and JPA.
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.
- Introduction to ORM and JPA
Persisting objects • O/R mapping (ORM) • Features of persistence mechanisms • JPA
- Spring Boot JPA basics
Spring's JPA integration • Spring JPA Hello World
- JPA Architecture and Configuration
JPA architecture • 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
@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
Lecture and hands-on exercises. The participants will work with Java applications accessing H2 and Oracle databases.
very good combination between theory and practice
I really appreciated the balance between theory and exercise. That made it much easier to keep focus.
||(N.N., Smals, )|
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ë, )|
Mon appréciation de ce cours est généralement positive. C'est un cours important dans le développement d'API. Il a bien été enseigné.
Super intéressant. J'ai suivi le deuxième jour et j'ai vraiment apprécié
||(Ayoub Hammou, ING België, )|
I learned some stuff but not as enough as I expected
||(Bruno Grilli, ING België, )|
Enrollees for this training also took the following courses:
|SESSION INFO AND ENROLMENT|