JAVPH – Java Persistence with Hibernate

Enquire/Book this course

  • This field is for validation purposes and should be left unchanged.
Print this page
  • Code: JAVPH
  • Duration: Days 2
  • Price per delegate: £500.00 +VAT

Trained over 60000 delegates

Course delivered by industry expert instructors

Highly competitive pricing

 

Course Description
This course develops skills in using the Object/Relational Mapping tool Hibernate. The course uses the latest release version of Hibernate, 3.2, which is directly related to the new EJB 3.0 version defined in Java EE 5.0. By the end of the course, students will be prepared to set-up and use Hibernate as the persistence mechanism in Java applications.
 
Target Student:
Java Programmers
Prerequisites:
  • Intermediate knowledge of Java programming and JDBC
  • Experience with SQL and relational databases
Delivery Method: Instructor led, group-paced, classroom-delivery learning model with structured hands-on activities.
The training course combines lectures with practical exercises that help the delegates to put what they have learned on the training course into practice. The exercises specifically build on what has been recently taught and are built up as the training course progresses.
 
Performance-Based Objectives
At the end of this training course, students should be able to:
  • Introduction to Hibernate
  • Configuring Hibernate
  • Hibernate Persistence
  • Object/Relational Mapping
  • The Criteria Query API
  • The Hibernate Query Language
Course Content
Introduction to Hibernate
  • Introducing Hibernate
  • The Object/Relational Mapping Problem
  • The Impedance Mismatch
  • JDBC
  • The Users-Roles Schema
  • Tools and Environment Setup
  • Creating the Database
  • The Role Class
  • The Hibernate Alternative
  • XML Tools
2. Configuring Hibernate
  • Hibernate Distributions
  • Required Libraries
  • Configuration Files
  • hibernate.properties
  • hibernate.cfg.xml
  • XML Configuration Model
  • Programmatic Configuration
3. Hibernate Persistence
  • The Hibernate Architecture
  • Interface Model
  • SessionFactory Methods
  • Hibernate Sessions
  • Object States
  • State Transitions
  • Session Methods
  • Transactions
  • Session-Per-Operation
  • Session-Per-Request
  • The Data Access Object Pattern
4. Object/Relational Mapping
  • Object-Oriented Design
  • Relational Mapping
  • Bidirectional Association
  • O/R Mapping Techniques
  • The Mapping Document
  • The Mapping XML Model
  • Primary Keys and Identity
  • Generating Identifiers
  • Other Mapping Elements
  • Earthlings Schema
  • Earthlings Relationships
  • Earthlings UML
  • Components
  • Mapping Associations
  • The Mapping XML Model for Associations
  • Unidirectional Many-to-One
  • Eager Fetching
  • Bidirectional One-To-Many
  • Bidirectional One-To-One
  • Mapping Inheritance
  • Inheritance and Databases
  • Single-Table Inheritance
  • Mapping Single-Table Inheritance
  • Table-Per-Subclass
  • Table-Per-Subclass Mapping
  • Table-Per-Concrete-Class
5. The Criteria Query API
  • Criteria Queries
  • The Criteria Interface
  • The Criteria API
  • The Restriction Class Utility
  • Other Restrictions
  • Windowing Results
  • Sorting Query Results
  • Projections and Aggregates
  • The Projections Class Utility
  • The ProjectionList Class
  • Query By Example
6. The Hibernate Query Language
  • The Hibernate Query Language
  • Fundamentals
  • HQL Queries
  • Polymorphism
  • Named Parameters
  • Entity Parameters
  • Joining on Associations
  • Aggregate Methods
  • Updates and Deletes
  • Named Queries
  • Using Native SQL