Hibernate Framework

Course Overview


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

Course Content

  • IntroductiontoHibernate
  • 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 Work” 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

Course Training

About Hibernate Training
Hibernate is the most popular object-relational mapping framework for Java environments. Object relational mapping in large enterprise applications is difficult. In this class, students learn object-relational mapping concepts and the various issues and options available in Java to address object persistence.

Students should have a good understanding of the Java Programming language.
A basic understanding of relational databases and SQL is very helpful.

Understand the challenges of mapping objects to relational databases and Learn the architecture of Hibernate
Know how to setup and configure Hibernate for a Java Project
Learn to map Java classes and object associations to relational database tables with Hibernate mapping files
Study Hibernate’s strategies for mapping Java inheritance trees to relational database tables
Learn the Hibernate Query Language and Criteria for retrieving Java objects and Explore Hibernate’s Caching Architecture
Hibernate Course Duration
Normal Track 40 Working days, daily one and half hour.
weekend Batches(saturday,sunday) 2to3 hours for day total 16 working days.
Hibernate Training.

Prospects


Hibernate is the most popular object-relational mapping framework for Java environments.This course is loaded with lots of hands on examples and deals with maintenance and performance issues. After taking this class, developers will be able to build faster, more flexible and easier to maintain application persistence layers with the Hibernate framework.

According to IDC statistics, the demand for talent in all software development class, the to achieve 60 to 70% of the total demand. It should be said that the employment opportunities and prospects of the Java software engineers is very large. Plus Java software engineers not only IT professionals, the majority of non-IT companies is also needed. The outlook is very optimistic.

Trainer Profile


Real Training with Real Time experience. He has around 13 years of Experience in Training,Designing and Implementing the Applications based on Hibernate