0

Java Persistence API with Hibernate

The Java Persistence API (JPA) of the Java Community Process is a standard for the object-relational mapping (ORM) of Java objects. JPA can be integrated into both Java EE applications with EJB3 and/or Spring as well as into any Java SE applications. As a result, it is possible to implement persistent objects with standardized interfaces portably. The open source project Hibernate was already widely used before the adoption of JPA and has made a name for itself as a very good OR mapping framework. It fully supports the JPA specification and adds useful non-standard features. Using practical examples and exercises, the participant will learn how to work with the Java Persistence API using Hibernate. Looking at the wider market reveals other JPA providers such as EclipseLink and OpenJPA.



3 days


  • After the training, you will be able to implement Persistence with JPA and Hibernate
  • The training will provide the necessary basics using many exercises and examples
  • Learn a standard for Persistence with Java
  • Become more independent of proprietary frameworks

target group

Java developers looking for a quick introduction to the Java Persistence API and Hibernate

Contents (new)


  • Object-relational mapping with Java
  • Introduction to the Java Persistence API
  • JPA provider (Hibernate, Eclipse and OpenJPA)

Persistent classes

  • Portrayal of a domain object model with POJOs
  • Using EntityManagerFactory and EntityManager
  • CRUD for Create, Read, Update, and Delete
  • Application of detached objects
  • Primary keys and generators
  • DDL generation

ORM (Object-Relational Mapping)

  • Simple mappings
  • Mapping associations (1:1, 1:n, n:m)
  • Unidirectional and bi-directional relationships
  • Mapping embedded components
  • Converter for user-defined data types
  • Portraying inheritance hierarchies


  • Setting up queries with JPAQL (Java Persistence API Query Language)
  • Grouping, aggregation, polymorphic queries
  • Type-safe queries and bulk updates with JPA Criteria API
  • Supporting stored procedures


  • Differences to the Java Persistence API
  • Mapping via annotations and XML files
  • HQL, Query By Criteria (QBC) and Query By Example (QBE)
  • Ehcache configuration

Working with persistent objects

  • Performance optimization using lazy loading and eager fetching strategies
  • Cache API and use of first and second level cache
  • Life cycle of persistent objects
  • Transitive persistence and cascading behavior
  • Optimistic vs. pessimistic locking

Integration into different architectures

  •  Java EE environments such as EJB, Spring
  • Use in Data Access Objects (DAO)
  • Use in Java SE environments


Advanced knowledge of Java programming, XML basics and SQL knowledge.

OIO Training

OIO Orientation in Objects GmbH, experts for Java and JavaScript in Mannheim, joined the Trivadis group in May 2018. Together we are extending and strengthening our offer for Java and agile software development. These courses have been developed by OIO and will be held by our new colleagues.

Our Quality Promise

Contact to our service center

DE+49 (0) 711 90363245

CH+41 (0) 584 595795

AT+43 (01) 33 2353160

FR+41 (0) 584 595454

EN+49 (0) 711 90363245

DA+49 (0) 711 90363245


Early booking pays off

Book your training at least 3 or 6 months before the start of the course and take advantage of the flexible pricing.

> 6 months> 3 months0–3 months
1 390,00 EUR1 560,00 EUR1 730,00 EUR
Virtual Classroom
31.01. - 02.02.2022
DE1 730,00 €
Virtual Classroom
16.05. - 18.05.2022
DE1 560,00 €
Virtual Classroom
12.09. - 14.09.2022
DE1 390,00 €
In-house training courses on request!inquiry
  •    E-Learning
  •    Standard
  •    Guaranteed to take place
  •    The course will definitely take place if you make a booking
  •    There are no free places left on this course. If you still book it, we will place you on the waiting list.
  • The course price is shown in the currency EUR. For orders from Switzerland, we convert the price into CHF and take into account the appropriate VAT rate. We are also happy to assist you with your order by telephone: CH +41 58 459 57 95 or DE +49 711 903 632 45.
back to trainings
0

Contact now

Trivadis, Bernd Rössler, Head of Training

Bernd Rössler

Solution Manager Trivadis Training


trivadis training satisfaction guarantee

Guarantee of quality

Following completion by the participants, every single training course is assessed at the levels

  • suitability of the training room,
  • suitability of the workplace,
  • functionality of the technical equipment, and
  • satisfaction throughout the entire course / seminar,

and recorded in our "TRIVALUATION" feedback system for quality assurance purposes. This enables us to consistently ensure the high quality and satisfaction of our valued customers. We really appreciate the overall rating of 9.3 from 10 points awarded by our many enthusiastic customers.


trivadis training success guarantee

Success guarantee

Trivadis guarantees the success of your training. Having completed the course / seminar, do you have any questions about the practical aspects? Would you like to repeat any of the exercises in the lab environment?

Our success guarantee allows you to repeat individual days, or even the entire training course, free of charge for up to 6 months after attending a training course. You bring with you the course materials from the previous training course.