Framework Training

Code

java5

Scheduled Dates

5 Aug 2013
7 Oct 2013
9 Dec 2013
10 Feb 2014

Scheduled Address

Framework Training Ltd

Business Environment Group
150 Minories
London
EC3N 1LS

UK

More about our London Training Centre

Experience Level

intermediate

Days

3

Price per person

£1995 +VAT

Course description

Our Hibernate training course will give you hands-on experience of configuring and deploying Hibernate-based Java web apps, delivered by our expert Java instructors.

Hibernate is often found in the wild alongside the Spring framework, where together they are able to deliver responsive Java web applications with full Model-View-Controller (MVC) and Object Relational Mapping (ORM) capabilities.

Hibernate deals chiefly with Data Persistence – for instance controlling User Sessions on busy e-commerce sites, and can be used alongside or as a replacement for other Java / EJB data persistence methods.

What you will learn

  • Hibernate Architecture
  • Hibernate Query Language (HQL)
  • Object Relational Mapping (ORM)
  • Working with Persistent Objects
  • Mapping Annotations & Associations
  • Mapping Inheritance
  • Spring and Hibernate Transaction Management
  • Performance & Tuning Optimisation
  • Locking Best Practices

Who should attend

Java developers who are looking to utilise the Hibernate Framework to perform powerful Object Relational Mapping activities and query databases using Hibernate Query Language (HQL).

Prerequisites

Good hands-on coding experience in Java and an understanding of how Relational Databases work.

Hibernate Training Course Syllabus

Introduction to Hibernate

Overview of Hibernate Architecture
Object Persistence
O/R mismatch
Object Relational Mapping (ORM)
Java ORM/Persistent Frameworks
A simple Hibernate application

Hibernate Query Language (HQL)

Fetching options
Hibernate queries
HQL parameters
Externalizing queries
Using the Criteria API

Persistent Objects

Using Hibernate with Spring
Entity Lifecycle
Transient, Persistent, and Detached States
Persistent Object Updates

Mapping using Annotations

Hibernate and JPA annotations
Class-to-table mappings
Property Mapping
Identifiers - Generators and Keys
Mapping an Entity to multiple tables

Hibernate Mapping Associations

Fetching strategies

  • Many-to-one
  • Bidirectional many-to-one
  • One-to-one
  • Bidirectional one-to-one
  • Many-to-many
  • Bidirectional many-to-many

Components
Cascading

Mapping Inheritance

Inheritance Mapping Strategies
Table per Concrete Class
Table per Subclass
Table per Hierarchy
Unions
Polymorphism

Spring and Hibernate Transaction Management

Hibernate transaction configuration
Hibernate Transaction API
Transaction Propagation

Performance Tuning and Optimisation

2nd-Level Cache
Batching
DML-style operations

Industrial-strength Hibernate

Optimistic locking and versioning
Pessimistic locking
Mixing Hibernate and JDBC

Interceptors and Events

Defining interceptors
Defining events
Recommendations