Search courses 👉
Professional Training
4.5 (2 Reviews)

JPA and Hibernate

Length
24 hours
Price
1,650 GBP
Next course start
22 January, 2025 (+6 start dates)
Course delivery
Virtual Classroom
Length
24 hours
Price
1,650 GBP
Next course start
22 January, 2025 (+6 start dates)
Course delivery
Virtual Classroom
Leave your details so the provider can get in touch

Course description

JPA and Hibernate Course Overview

Hibernate is the primary JPA implementation and the most popular Java ORM framework. It dramatically reduces boilerplate code, eliminates vendor specific SQL, and eases the reading and writing of composite objects and specialisations to the database.

This JPA and Hibernate course delivered using JPA v3 and Hibernate v6, focuses on the practical aspects of using the framework as part of the technology stack. Attendees will learn how to persist the instances of classes that follow natural object-oriented idioms including composition and inheritance.

Exercises and examples are used throughout the course to give practical hands-on experience with the techniques covered.

Who will the Course Benefit?

The JPA and Hibernate course is aimed at developers involved in the building of complex enterprise-level Java applications.

Course Objectives

This course aims to provide the delegate with the knowledge to be able to develop (or contribute to the development of) enterprise-level Java applications that use JPA and Hibernate to read from and write to relational databases.

Upcoming start dates

Choose between 6 start dates

22 January, 2025

  • Virtual Classroom
  • Online

26 March, 2025

  • Virtual Classroom
  • Online

28 May, 2025

  • Virtual Classroom
  • Online

30 July, 2025

  • Virtual Classroom
  • Online

1 October, 2025

  • Virtual Classroom
  • Online

1 December, 2025

  • Virtual Classroom
  • Online

Suitability - Who should attend?

Requirements

Delegates attending this course should be competent Java developers who have a good understanding of OO principles and are able to build simple applications that exploit APIs including Collections, IO, and JDBC in particular. This knowledge can be obtained by attendance on the pre-requisite Java Programming 1 / Java Developer course.


Experience to the level as demonstrated in this course is recommended:
  • Java Programming 1 / Java Developer

Training Course Content



JPA and Hibernate Training Course

Course Contents - DAY 1

Course Introduction
  • Administration and Course Materials
  • Course Structure and Agenda
  • Delegate and Trainer Introductions
Session 1: INTRODUCTION TO HIBERNATE
  • The problems with JDBC
  • About ORM
  • The relationship between JPA and Hibernate
  • Hibernate architecture
  • Installing Hibernate
  • Configuring the SessionFactory (XML and Java)
  • Obtaining and using a Session (basic)
Session 2: BASIC ENTITY MAPPING
  • About entity mapping
  • XML mapping
  • Annotation mapping
  • Entity types
  • Value types
  • Embeddable types
  • Collections
  • Key generation
Session 3: THE HIBERNATE SESSION
  • About the Hibernate Session
  • Transient, persistent, and detached entity states
  • Hibernate transactions
  • Using the Session to perform basic CRUD operations
JPA and Hibernate Training Course

Course Contents - DAY 2

Session 4: COMPOSITE MAPPING
  • About composite mapping
  • One-to-one
  • One-to-many
  • Many-to-many
  • Uni vs bi-directional associations
  • Cascading
  • Eager vs lazy fetching
  • The n+1 problem
Session 5: INHERITANCE MAPPING
  • About inheritance mapping
  • Mapped superclass
  • Single table
  • Joined table
  • Table per class
  • Polymorphic queries
JPA and Hibernate Training Course

Course Contents - DAY 3

Session 6: HIBERNATE QUERY LANGAUGE (HQL)
  • About Hibernate Query Language (HQL)
  • Basic queries
  • Querying for a subset of the class's fields
  • Literal, ordinal, and named parameters
  • Single result queries
  • Functions
  • Queries with joins
  • Eager fetching
  • Ordering
  • Grouping
  • Native queries
  • Named queries
  • An introduction to criteria queries
Session 7: THE JPA ENTITYMANAGER
  • About the JPA EntityManager
  • Configuring the EntityManagerFactory (XML and Java)
  • Obtaining and using an EntityManager (basic)
  • About the Persistence Context
  • About the JPA Query Language (JPQL)
  • JPA EntityManager vs Hibernate Session
Session 8: PERFORMANCE TUNING
  • Discovering performance issues
  • Choosing the right fetch type
  • Query-specific fetching
  • Using Sets, not Lists, for many-to-many associations
  • Having the database do the heavy lifting
  • First and second-level cache
  • Performing bulk updates


Customer Outreach Award

customer-outreach-badge-2019

We believe that it should be easy for you to find and compare training courses. 

Our Customer Outreach Award is presented to trusted providers who are excellent at responding to enquiries, making your search quicker, more efficient and easier, too.

Reviews

Average rating 4.5

Based on 2 reviews.
Reviews are published according to our review policy.
Write a review!
Dominic
5/5
11 Mar 2019
Introduction to Hibernate

Good refresher on Hibernate. Always enjoy courses with Greg as he has a fresh way of teaching and a vast knowledge of the latest technology used on large enterprise projects.

Iqbal
4/5
07 Nov 2018
Great Instructor!

Great Instructor! Well spoken and easy to understand.

Continuing Studies

Further Learning

  • Developing Applications with Java EE
  • Core Spring

Request info

Contact form

Fill out your details to find out more about JPA and Hibernate.

  Contact the provider

  Get more information

  Register your interest

Country *

reCAPTCHA logo This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
StayAhead Training
56 Commercial Road
E1 1LP London

Why StayAhead. From a single person on a scheduled course to large scale training projects StayAhead Training have the expertise and experience to help. Established since 1992, StayAhead Training is recognised as one of the leading independent IT Training specialists...

Read more and show all courses with this provider

Ads