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.
-
Duration
3 days -
Goal
- 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
Basics
- 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
Queries
- 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
Hibernate
- 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
-
Requirements
Advanced knowledge of Java programming, XML basics and SQL knowledge.
Contact to our service center
+49 (0) 711 90363245
+41 (0) 584 595795
+43 (01) 33 2353160
+41 (0) 584 595454
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
€ 1.390,00
> 3 months
€ 1.560,00
0-3 months
€ 1.730,00
Place | Date | Language | Price | |
---|---|---|---|---|
Virtual Classroom | 27.02 - 01.03.2023 | de | € 1.730,00 | |
Virtual Classroom | 23.10 - 25.10.2023 | de | € 1.390,00 | |
In-house training courses on request | Inquiry |
- 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.