Hibernate

Key Features

Notes

Assignments

6 Weeks

Hibernate Framework

Hibernate framework simplifies the development of java application to interact with the database. Hibernate is an open source, lightweight, ORM (Object Relational Mapping)tool.

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. With these fundamentals, the course then explores the basics of Hibernate object persistence and configuration. It also digs into the details of Hibernate mapping, queries, transactions, and concurrency.

Understand the challenges of mapping objects to relational databases

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

Explore Hibernate’s Caching Architecture

Our Syllabus

We have provide you the following syllabus modules in your training period.

Introduction,Hibernate Resource & Hibernate Architecture

ORM (Object Relational Mapping)

    Hibernate Resource

  1. Configuration file
  2. Mapping file
  3. Persistent class or POJO
  4. Client application.
    Hibernate Architecture

  1. Installation and Directory Structure
  2. Hibernate Data Types
  3. First Application using Hibernate

Hibernate API,Object lifecycle &CRUD operation

  1. Configuration
  2. SessionFactory
  3. Session
  4. Transaction
    Object lifecycle in Hibernate
  1. Transient object
  2. Persistent object
  3. Detached object
    CRUD operation using Session Methods
  1. Transient object
  2. Persistent object
  3. Detached object

Versioning & Primary key Generators And Query Language(HQL)

  1. save, persist, SaveOrUpdate
  2. update, merge, delete
  3. load, get
  4. flush, evict, clear etc
    Hibernate Query Language(HQL)
  1. Joins in Hibernate
  2. Batch processing and Native SQL
  3. Criteria API
  4. Criteria with projections

Inheritance Mapping & Assoction Mapping

  1. Table per class
  2. Table per sub class
  3. Table per concrete class
    Assoction Mapping
  1. one to one,one to many,many to one,many to many
  2. Uni directional & Bi directional
  3. Explanation on inverse and cascade attribute
  4. First level Cache(Session cache)
  5. Second level Cache(SessionFactory cache)
  6. Query level cache

Component Mapping,Custom Mapping & Collection Mapping

  1. List
  2. set
  3. map
  4. beg
  5. Mapping Array
  6. Sorting collections

Connection Pool & Transactions And Concurrency

  1. Default connection pool
  2. Server supplied pool
  3. Third party vendor connection pool
    Transactions And Concurrency
  • Programmatic transactions with JTA
  • Optimistic Concurrency control
  • Pessimistic Concurrency control

Transactions and Concurrency

  1. Programmatic transactions with JTA
  2. Optimistic Concurrency control
  3. Pessimistic Concurrency control

Hibernate Pagination Hibernate Filter

Connecting with Multiple Databases(Oracle,  HypersonicSQL)

  1. Integrating Hibernate with Servlet
  2. Integrating Hibernate with Struts
  3. Working with Hibernate Annotations

IDE:    Eclipse, Netbeans