1111

 

 

Objectives:

  • This course provides complete exhaustive coverage of Hibernate with features like ORM mapping, Persistent class, HQL, Transaction and caching, Inheritance Mapping.
  • Use hibernate framework to persist java objects into a database table.
  • Create different types of persistent classes.
  • Map java inheritance hierarchy with database tables using various mapping techniques.
  • Persist different types of collections.
  • Fetch data effectively from database using traditional SQL and Hibernate Query Language
  • Improve hibernate performance using various caching techniques.

Download PDF Download the PDF

An embedded awareness & advanced training Group

Take Away:

  • Create different types of java persistent objects.
  • Mapping of POJO object with relational Table
  • Use different caching techniques to improve performance of hibernate.
  • Create applications with database connectivity.
  • Create web application with hibernate.
  • To manage transactions.
  • Efficiently use HQL language
 

Pre-requisites:

  • Experience with java programming language and knowledge of any RDBMS
  • Knowledge of Web Technology Fundamentals will be an added advantage

Course Details

Object / Relational Persistence and ORM

  •  Persistence Layers
  • Persistence mechanisms
  • Paradigm Mismatch
  • Object Relational Mapping
  • Adv Feature of ORM ,
  • Difference between
    • JDBC vs ORM
    • EJB   vs ORM
  • Advantages of ORM
  • Hibernate  Overview and benefits

Introduction to Hibernate

  • Basic Feature and Architecture
  • Core Architecture
  • Hibernate Core API
  • SessionFactory interface
  • Session interface
  • Configuration interface
  • Transaction interface
  • Query interface
  • Configuring Hibernate
  • First Hibernate Application

Hibernate Mapping

  • Construction of POJO class
  • Persistence  Life cycle 
    • ( Transient, Persistent ,detached object )
  • hibernate.cfg.xml Elements
  • Hibernate JDBC Properties
  • .hbm.xml basic elements
  • The <hibernate-mapping> Element and its attribute
  • The <class> Element and its attribute
  • Mapping the id Property with <id>
  • The <generator> element and its attribute
  • Mapping Properties with <property> and its attribute

Creating Persistent Classes

  • Mapping Serializable Class
  • Mapping Date Class
  • Mapping Binary Data
  • Component Mapping
  • Inheritance Mapping   
  • Inheritance Mapping Strategies
  • Mapping Table Per class strategy
  • Mapping Table Per Subclass strategy
  • Mapping Table per Concrete Class strategy

Hibernate Query Language

  • HQL basics
  • Executing Query
  • Clauses in HQL
  • Aggregate Function in HQL
  • Using query Interface
  • Using Criteria interface
  • Use of Expression  interface and its method
  • Use of Restriction  interface and its method
  • Stored Procedures and Interceptors

Mapping Collection  /  Associations

  • Mapping Collection of value types
  • Needs of collection in hibernate
  • How to Map list in  Hibernate
  • Mapping a set Collection in Hibernate
  • Use of Map collection in Hibernate
  • Implementation of Sorted Map Collection in Hibernate
  • How to use <list>,<set>,<Map> elements and it’s attributes
  • Possible types of Uni and Bidirectional Associations

Hibernate Caching  - I

  • What is cache
  • Advantage of Caching in Hibernate
  • Caching strategies and Scope
  • Diifferent type of cache in Hibernate

Hibernate Caching  - II

  • Overview of  Second level cache
  • Setting up a second level cache
  • Different type of caching strategies
  • Different Cache Providers

 

Copyright ® 2009 eACT Technologies Home