Hibernate Fundamentals

Course:  JAVA401
Duration:  2 Days
Level:  II
Course Summary

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.

« Hide The Details
Topics Covered In This Course

Introduction to Hibernate

  • The Object/Relational Mapping Problem
  • JDBC
  • Hibernate Alternative
  • Hibernate Architecture and API

Configuring Hibernate

  • The Hibernate Distribution
  • Required Libraries
  • Configuration Files
  • hibernate.properties
  • hibernate.cfg.xml
  • Programmatic Configuration

Hibernate Persistence

  • The SessionFactory Interface
  • Object States
  • The Session Interface
  • Transactions
  • Session Duration
  • The Data Access Object Pattern

Object/Relational Mapping

  • O/R Mapping Issues
  • The Mapping Vocabulary
  • Primary Keys and Identity
  • ID Generators
  • Mapping Associations
  • Unidirectional and Bidirectional Associations
  • Managing Cardinality
  • Strategies for Mapping Inheritance

The Criteria Query API

  • Criteria Queries
  • The Criteria Interface
  • Using Restrictions
  • Windowing Results
  • Sorting
  • Traversing Associations
  • Projections and Aggregates
  • Grouping
  • Query By Example (QBE)

Hibernate Query Language

  • Building HQL Queries
  • The Select Clause
  • The Where Clause
  • Named and Entity Parameters
  • Associations and Aggregates
  • Bulk Updates and Deletes
  • Named Queries
  • Using Native SQL
What You Can Expect

• Configure Hibernate using both properties files and XML documents.

• Create mapping documents for Java classes.

• Define object relationships and build mapping documents to model them.

• Use components to model composition relationships in the object model.

• Work with one-to-one, many-to-one, and many-to-many relationships.

• Evaluate the different approaches to modeling inheritance and polymorphism in database schema.

• Build Java applications that use Hibernate to create, retrieve, update, and delete objects.

• Use Hibernate's Criteria Query API to do searches and Query By Example.

• Work with Hibernate Query Language (HQL) to generate object-based SQL.

• Understand Hibernate sessions and transactions and their impact on performance.

Recommended Prerequisites

• Intermediate knowledge of Java programming

• Some familiarity with SQL, relational databases, and the Java Database

• Connectivity (JDBC) interfaces will be used

Training Style

Hands-on, Instructor-Led

« Hide The Details
Related Courses
Code Course Title Duration Level
JAVA101
Java Development for Mainframe Programmers
5 Days
I
Details
JPA1
Developing Applications with Java Persistence API (JPA)
3 Days
II
Details
SPRHIBD
Spring and Hibernate Development
5 Days
II
Details

Every student attending a Verhoef Training class will receive a certificate good for $100 toward their next public class taken within a year.

You can also buy "Verhoef Vouchers" to get a discounted rate for a single student in any of our public or web-based classes. Contact your account manager or our sales office for details.

Schedule For This Course
There are currently no public sessions scheduled for this course. We can schedule a private class for your organization just a couple of weeks from now. Or we can let you know the next time we do schedule a public session.
Notify me the next time this course is confirmed!
Can't find the course you want?
Call us at 800.533.3893, or
email us at [email protected]