Introduction to Hibernate
 
 

Introduction to Hibernate

Course Code: HIBI

Duration: 2 days

Our training courses can also be delivered at a location of your choice...

S6

Introduction to Hibernate Course Overview

Hibernate is a popular Object/Relational Mapping framework that enables developers to write applications whose data persists in a database beyond the lifetime of the application that uses the data.

The Introduction to Hibernate course focuses on the practical aspects of using Hibernate as part of the technology stack. Attendees will learn how to develop persistent classes following natural Object-oriented idioms including inheritance, polymorphism, association, composition, and the Java collections framework.

The course uses Hibernate 5.2, and is based around a series of hands-on practical exercises and examples, where attendees will learn how to use Hibernate to produce high-performance, scalable and reliable software that manages critical data.

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

The delegate will learn and acquire skills as follows:

  • Understand the benefits of Hibernate
  • Understand the Hibernate architecture
  • Create Hibernate based applications
  • Understand and use Hibernate mapping to map persistent objects to the database
  • Understand and work with collections and associations
  • Use value and Entity Types
  • Create bi-directional and uni-directional mappings
  • Use Hibernate's versioning support
  • Map inheritance hierarchies using Hibernate
  • Work with Hibernate queries, HQL, and Criteria
  • Performance tuning Hibernate applications
  • Understand Hibernate transaction support

Who will the Course Benefit?

The Introduction to Hibernate course is aimed at architects, programmers, engineers, managers and those involved in the development of complex enterprise-level Java applications.

This course is aimed specifically at those using Java as the core development language.

Course Objectives

This course aims to provide the delegate with the knowledge to be able to:

  • Configure JPA and Hibernate
  • Map Java objects to relational tables
  • Map object associations to relationships
  • Manage transactions
  • Create and retrieve persistent objects
  • Manipulate persistent objects

Requirements

Delegates attending this course should have experience programming with Java. This knowledge can be obtained by attendance on the pre-requisite Java Programming 1 course. Some exposure to JDBC would also be useful. JDBC is covered on our Java Programming 2 course, attendance of this course would be beneficial

Pre-Requisite Courses

Follow-On Courses

Notes:
  • Course technical content is subject to change without notice.
  • Course content is structured as sessions, this does not strictly map to course timings. Concepts, content and practicals often span sessions.


 

Course Contents

Introduction to Hibernate Training Course

Course Introduction

  • Administration and Course Materials
  • Course Structure and Agenda
  • Delegate and Trainer Introductions

Session 1: INTRODUCTION TO HIBERNATE

  • Why ORM?
  • Choosing Hibernate
  • Hibernate Architecture
  • Hibernate Setup
  • Downloading Hibernate
  • Installing Hibernate
  • Hibernate Configuration
  • Hibernate Properties
  • Example MySQL Configuration
  • Example Oracle Configuration
  • Example Derby Configuration

Session 2: USING HIBERNATE

  • Hibernate Mapping
  • Mapping with Annotations
  • Hibernate Session
  • Hibernate Session: A Deeper Look
  • Hibernate Transactions
  • Transaction Properties
  • Transaction Rollbacks
  • Transaction API
  • Hibernate Entities
  • Hibernate Versioning
  • Hibernate Logging

Session 3: HIBERNATE MAPPING

  • Mapping Classes
  • Entity and Value Types
  • Value Types
  • Embeddable Types
  • Key Generation Strategies
  • Identity Strategy
  • Sequence Strategy
  • Table Strategy
  • Auto Strategy
  • Inheritance Mapping
  • Table Per Class
  • Table Per Subclass
  • Table Per Concrete Class
  • Relationship Mapping
  • Understanding Relationships
  • One-to-One Associations
  • One-to-Many Associations

Session 4: QUERYING PERSISTENT OBJECTS

  • Hibernate Query Language
  • HQL Expressions
  • HQL Functions
  • HQL Queries
  • Sample Queries
  • Polymorphic Queries
  • Scrollable Result Sets
  • Named Queries
  • Using Joins
  • Hibernate Caching
  • Caching Levels
  • Query Caching
  • Grouping and Subqueries
  • Binding Parameters
  • Criteria Query

Session 5: THE HIBERNATE ENVIRONMENT

  • The session manager
  • Transitive persistence
  • Dealing with long-running transactions
  • Locking implications

Introduction to Hibernate Training Course

Session 6: ADVANCED MAPPING

  • Mapping to collection classes
  • Managing multiplicity: one-to-many, many-to-many
  • Custom mapping types

Session 7: SOURCE FILES

  • Creating the SessionFactory
  • Fetching strategies
  • The n+1 issue and its solution
  • Lazy (and aggressive) fetching strategies

Session 8: PERFORMANCE CONSIDERATIONS

  • First- and second-level caching
  • Monitoring and tuning Hibernate-generated SQL

Session 9: HIBERNATE AND JPA

  • Comparison of Hibernate with the Java Persistence API
  • Pros and Cons of Hibernate versus JPA in an EJB 3
  • Environment
  • Best of both worlds: Hibernate EntityManager

Session 10: HIBERNATE TOOLS

  • Automatic schema generation
  • Automatic POJO generation
  • Accommodating existing schemas
  • The Hibernate console and mapping editor

Session 11: HIBERNATE 5 NEW FEATURES

  • Enhanced Hibernate Search
  • Hibernate Validator
  • Improved Java 8 Support
  • Bootstrapping API
  • A look at Hibernate OGM
  • ByteBuddy Enhancements
  • Hibernate Multi-tenancy
 

Introduction to Hibernate

Duration: 2 days

RRP: £895.00 exc. VAT 


Upcoming Scheduled Events
Next 12 months

Virtual StayAhead Virtual Courses available  & London Schedule
We are running a full Virtual schedule
Start Date   Spaces Book
29 Jun 2020
StayAhead Virtual Courses available  StayAhead Classroom Courses available 
Spaces StayAhead - Course Running Book
17 Sep 2020
StayAhead Virtual Courses available  StayAhead Classroom Courses available 
Spaces StayAhead - Course Running Book
23 Nov 2020
StayAhead Virtual Courses available  StayAhead Classroom Courses available 
Spaces StayAhead - Course Running Book

Virtual Events StayAhead Virtual Courses available Attend your training using our Live Virtual Classroom solution.

Classroom Events StayAhead Classroom Courses available You can attend in our traditional classroom setting using one of our Training Centres.
In the current climate, attendance at a Training Centre will be reviewed at the time of the request.

Closed Courses Closed Classroom Courses available These Closed Company events can be offered in your own setting or using our Live Virtual Classroom solution.
Delegates can attend from your business location, their home or a location of their choice. A great way to provide training to a group of delegates in a Team environment, even when they are in diverse locations, nationally or even internationally.
 

Course Reviews

Great Instructor! Well spoken and easy to understand.

Iqbal - Java Developer


 
 
 
        Home             Let Us Call You
 

 

Course Deliveries

Public Scheduled and Closed
Virtual
UK and Overseas

OUG

Oracle User Group - Membership Benefits

OUG

Certification

Our independent Oracle, Solaris & Red Hat Linux curriculums helps prepare delegates for official certification.

StayAhead
Flexibility

Cannot see a sutiable date?
Please call us and we will try an accommodateyour needs!

StayAhead Live Virtual Classroom

 
Join live instructor-led classroom training from the comfort of your home or office.
All the convenience and benefits of the classroom experience without the hassle and costs associated to travel and accommodation.
 
 



Our Course Curriculum

 
 
 
 
 

AWS, Azure, VMWare, Cisco & Cyber Security

 
 



Our Ratings

Instructor
Quality
 

97.32%

Course
Practical
 

92.5%

Overall
Courseware
 

94.31%

Overall
Course
 

96.29%

+44 (0)20 7600 6116
Enquiries@StayAhead.com
Copyright © 2020 StayAhead Training Ltd
Cookies   /   Privacy Policy