Framework ITRONIX CERTIFIED

Hibernate Industrial Training

 

Introduction to Hibernate

  1. Issues with Persistence layers and Object-Relational Mapping (ORM)
  2. Hibernate Overview and Benefits
  3. Hibernate architecture overview
  4. POJO (Plain Old Java Object) Based Mapping
  5. Proc and Cons of JDBC

Getting started with Hibernate quickly

  1. Overview of the Hibernate distribution
  2. Configuring Hibernate
    • hibernate.cfg.xml file
    • SessionFactory configuration
    • Connection properties, Database dialect
    • Configuration class, Session Interface
  3. “Hello World” Program for Hibernate

Mapping a Class

  1. Persistent Entity Class, Hibernate Mapping
  2. File, Mapping the Entity Class
  3. Primary keys: Id property, Generated Id
  4. Hibernate Type System
  5. Working with sessions and Persistent Objects
  6. Logging – log4j Overview and configuration for Hibernate

Querying

  1. Inserting and Updating Entities
  2. HQL – Hibernate Query Language Overview
  3. The Query Interface
  4. Creating and working with queries
  5. Named Queries, Projection Queries, Aggregate Queries

The Persistence Lifecycle

  1. Transaction Overview and Transactions in Hibernate
  2. Hibernate Transaction API (in Managed and Non-managed Environments)
  3. The lifecycle of managed objects
  4. Persistent, transient, and detached objects
  5. The Persistence (Session) Context (Lifespan, Relation to Managed Objects, Propagation)
  6. Contextual Sessions
  7. Synchronization to the Database
  8. The Session as cache

Optimistic Locking / Versioning

  1. Detached Objects and Optimistic Locking
  2. Versioning overview and Using Versioning
  3. Locking Objects

Relationships

  1. Object Relationship Overview
  2. Mapping Collections of Value Objects
  3. Entity Relationships: 1-N, N-1, N-N, 1-1
  4. Mapping Entity Relationships
  5. Uni and Bi-directional Relationships
  6. The Relationship “inverse”
  7. Cascading Over Relationships
  8. Queries Across Relationships (Lazy and Eager)

Inheritance Mapping

  1. Entity Inheritance with Hibernate
  2. Table-per-class mapping
  3. Table per Subclass mapping
  4. Table per Concrete Class mapping

Additional Querying Capabilities

  1. Projection Queries, Aggregate queries
  2. Bulk updates and deletes
  3. Native SQL Queries
  4. Query Filters

The Criteria API

  1. Overview of the Criteria API
  2. Working Querying with the Criteria API
  3. Query by Example
  4. Best Practices of Criteria

Advanced Topics

  1. Components and Multi-Table Mapping
  2. equals() and hashCode()
  3. Caching and Efficiency
  4. Design Considerations
  5. Overview of Interceptor
  6. Understanding of Interceptor
  7. Uses of Interceptor in project
  8. Uses of Interceptor as AuditTrail

Advance Topic – Interceptor

  1. Overview of Interceptor
  2. Understanding of Interceptor
  3. Uses of Interceptor in project
  4. Uses of Interceptor as AuditTrail
  5. How to integarate with MVC app
  6. How to integrate in Spring
  7. Best Practices in Hibernate
  8. Conclusion
  9. Questions and Answer Session