OUR

Courses

Previous knowledge

  • Knowledge of Java programming,
    Basic database knowledge

Using a sample application, you will gain practical experience and immerse yourself in the world of Hibernate / Jakarta Persistence (JPA).

You will learn how to use object-relationship mapping, how to use an entity manager, how to build queries, and how to configure JPA features. Various JPA implementation providers will be presented, including Hibernate.

Our experienced trainers will program with you step by step using a sample application of your choice.

Our trainers always give you the opportunity to influence the content of the training and are happy to bring examples that would help you best for your specific situation in your company.

Introduction to JPA with Spring

  • Configuration of DB connection, connection pool
  • EntityManager
  • States of an entity
  • Lifecycle methods

Database mapping

  • Mapping to tables using annotations
  • Mapping of primary keys and foreign key relationships (1:1, 1:n, m:n)
  • Complex Collection Mappings

Transactions & Locking Strategies

  • Declarative and programmatic transactions with Spring
  • Pessimistic locking
  • Optimistic locking

Advanced Mapping

  • Mapping using @SqlResultSetMapping
  • Mapping using DTO constructors and JPA-QL
  • Spring Projections
  • Inheritance in JPA Entities

Queries in JPA

  • JPA QL
  • API Criteria
  • Query optimization using fetch joins and entity graphs