Your privacy matters: This site uses cookies to analyze site usage and provide social media features. Learn More.

Introduction to Hibernate

HIB-100 (3 Days)

Request Pricing

Hibernate Training Overview

Hibernate is a high-performance object/relational persistence and query service. In this class, experienced Java developers learn how to put the Hibernate engine to work within their applications.

Location and Pricing

Most Accelebrate courses are delivered as private, customized, on-site training at our clients' locations worldwide for groups of 3 or more attendees and are custom tailored to their specific needs. Please visit our client list to see organizations for whom we have delivered private in-house training. These courses can also be delivered as live, private online classes for groups that are geographically dispersed or wish to save on the instructor's or students' travel expenses. To receive a customized proposal and price quote for private training at your site or online, please contact us.

In addition, some courses are available as live, online classes for individuals. See a schedule of online courses.

Hibernate Training Objectives

  • 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
    • Value and Entity Types
    • Bidrectional and unidirectional
    • 1-1, 1-N, N-N
  • Use Hibernate's versioning support
  • Map inheritance hierarchies using Hibernate
  • Work with Hibernate queries, HQL, and Criteria
  • Performance tune your Hibernate applications
  • Understand Hibernate transaction support
  • Understand the relationship between Hibernate and Java Persistence / EJB 3
  • Use the new Hibernate annotations to do OR mapping

Hibernate Training Outline

Expand All | Collapse All | Printer-Friendly

Introduction to Hibernate
  • Issues with Persistence layers and Object-Relational Mapping (ORM)
  • Hibernate Overview and Benefits
  • Hibernate architecture overview
  • POJO (Plain Old Java Object) Based Mapping
Getting started with Hibernate quickly
  • Overview of the Hibernate distribution
  • Configuring Hibernate
    • hibernate.cfg.xml file
    • SessionFactory configuration
    • Connection properties, Database dialect
    • Configuration class, Session Interface
  • "Hello World" Program for Hibernate
  • Mapping a Class
    • Persistent Entity Class, Hibernate Mapping
    • File, Mapping the Entity Class
    • Primary keys: Id property, Generated Id
  • Hibernate Type System
  • Working with sessions and Persistent Objects
  • Logging - log4j Overview and configuration for Hibernate
Querying
  • Inserting and Updating Entities
  • HQL - Hibernate Query Language Overview
  • The Query Interface
  • Creating and working with queries
  • Named Queries, Projection Queries, Aggregate Queries
The Persistence Lifecycle
  • Transaction Overview and Transactions in Hibernate
  • Hibernate Transaction API (in Managed and Non-managed Environments)
  • The lifecycle of managed objects
  • Persistent, transient, and detached objects
  • The Persistence (Session) Context (Lifespan, Relation to Managed Objects, Propagation)
  • Contextual Sessions
  • Synchronization to the Database
  • The Session as cache
Optimistic Locking / Versioning
  • Detached Objects and Optimistic Locking
  • Versioning overview and Using Versioning
  • Locking Objects
Relationships
  • Object Relationship Overview
  • Mapping Collections of Value Objects
  • Entity Relationships: 1-N, N-1, N-N, 1-1
  • Mapping Entity Relationships
  • Uni and Bi-directional Relationships
  • The Relationship "inverse"
  • Cascading Over Relationships
  • Queries Across Relationships (Lazy and Eager)
Inheritance Mapping
  • Entity Inheritance with Hibernate
  • Table-per-class mapping
  • Table per Subclass mapping
  • Table per Concrete Class mapping
Additional Querying Capabilities
  • Projection Queries, Aggregate queries
  • Bulk updates and deletes
  • Native SQL Queries
  • Query Filters
The Criteria API
  • Overview of the Criteria API
  • Working Querying with the Criteria API
  • Query by Example
Hibernate and Java Persistence / EJB 3
  • Overview of Java Persistence / EJB 3
  • Relationship between Java Persistence and Hibernate
  • Overview of Annotations
  • Mapping Entities with Hibernate Annotations
  • The EntityManager, Persistence Context and Persistence Unit
  • Working with Transactions - EntityTransaction, Managed, and Unmanaged Environments
  • Inserts and Updates
  • JPQL - Java Persistence Query Language
  • Versioning
  • Relationships
Advanced Topics
  • Components and Multi-Table Mapping
  • equals() and hashCode()
  • Caching and Efficiency
  • Design Considerations
Conclusion
Request Pricing
Lecture percentage

40%

Lecture/Demo

Lab percentage

60%

Lab

Course Number:

HIB-100

Duration:

3 Days

Prerequisites:

All attendees must have at least one year of full-time Java™ development experience and an excellent understanding of relational databases and SQL.

Training Materials:

All attendees receive a copy of Apress' Beginning Hibernate: From Novice to Professional and related courseware.

Software Requirements:

  • Core 2 Duo or faster processor with at least 3 GB RAM
  • Any operating system that supports Java 1.8 or later
  • JDK 7 (6 could be accommodated upon request)
  • The Java tool the students are likely to use after the class (Eclipse is recommended, but other tools are supported)
  • Other free software - please contact us if you have purchased this class

Contact Us:

Accelebrate’s training classes are available for private groups of 3 or more people at your site or online anywhere worldwide.

Don't settle for a "one size fits all" public class! Have Accelebrate deliver exactly the training you want, privately at your site or online, for less than the cost of a public class.

For pricing and to learn more, please contact us.

Contact Us Train For Us

Toll-free in US/Canada:
877 849 1850
International:
+1 678 648 3113

Toll-free in US/Canada:
866 566 1228
International:
+1 404 420 2491

925B Peachtree Street, NE
PMB 378
Atlanta, GA 30309-3918
USA

Subscribe to our Newsletter:

Never miss the latest news and information from Accelebrate:

Microsoft Gold Partner

Please see our complete list of
Microsoft Official Courses

Recent Training Locations

Alabama

Huntsville

Montgomery

Birmingham

Alaska

Anchorage

Arizona

Phoenix

Tucson

Arkansas

Fayetteville

Little Rock

California

San Francisco

Oakland

San Jose

Orange County

Los Angeles

Sacramento

San Diego

Colorado

Denver

Boulder

Colorado Springs

Connecticut

Hartford

DC

Washington

Florida

Fort Lauderdale

Miami

Jacksonville

Orlando

Saint Petersburg

Tampa

Georgia

Atlanta

Augusta

Savannah

Idaho

Boise

Illinois

Chicago

Indiana

Indianapolis

Iowa

Ceder Rapids

Des Moines

Kansas

Wichita

Kentucky

Lexington

Louisville

Louisiana

Banton Rouge

New Orleans

Maine

Portland

Maryland

Annapolis

Baltimore

Hagerstown

Frederick

Massachusetts

Springfield

Boston

Cambridge

Michigan

Ann Arbor

Detroit

Grand Rapids

Minnesota

Saint Paul

Minneapolis

Mississippi

Jackson

Missouri

Kansas City

St. Louis

Nebraska

Lincoln

Omaha

Nevada

Reno

Las Vegas

New Jersey

Princeton

New Mexico

Albuquerque

New York

Buffalo

Albany

White Plains

New York City

North Carolina

Charlotte

Durham

Raleigh

Ohio

Canton

Akron

Cincinnati

Cleveland

Columbus

Dayton

Oklahoma

Tulsa

Oklahoma City

Oregon

Portland

Pennsylvania

Pittsburgh

Philadelphia

Rhode Island

Providence

South Carolina

Columbia

Charleston

Spartanburg

Greenville

Tennessee

Memphis

Nashville

Knoxville

Texas

Dallas

El Paso

Houston

San Antonio

Austin

Utah

Salt Lake City

Virginia

Richmond

Alexandria

Arlington

Washington

Tacoma

Seattle

West Virginia

Charleston

Wisconsin

Madison

Milwaukee

Alberta

Edmonton

Calgary

British Columbia

Vancouver

Nova Scotia

Halifax

Ontario

Ottawa

Toronto

Quebec

Montreal

Puerto Rico

San Juan

© 2013-2019 Accelebrate, Inc. All Rights Reserved. All trademarks are owned by their respective owners.