Hibernate - 2 Days
Hibernate - 2 Days
Pre-requisites:
- Understand when to use annotations Vs XML
- Have understanding of database relationship
- Audience:This workshop is intended for programmers who have worked with JDBC and now want to start working with hibernate.
(It is mandatory to accomplish the training prerequisite conditions before nominating for the session)
Course Objectives:
After completing this workshop, the participants will have
- Understanding of ORM concepts
- Working knowledge of Hibernate
Course Contents:
Day 1:
Introduction
Introduction to Hibernate
Overview of Hibernate
Features of Hibernate
Architecture
Getting Started with Hibernate
Prepare Database
Create Persistent Java Objects
Mapping POJO With Persistence Layer annotations
Hibernate Configuration File
Hibernate O/R Mapping
Mapping declaration
Mapping Document
<hibernate-mapping> element
<class> element
<id> element
<generator> element
<property> element
Working with objects
Hibernate object states
Making objects persistent
Loading an object
Querying
Modifying persistent objects
Modifying detached objects
Deleting persistent objects
Flushing the Session
Day 2:
Relationships
Uni-directional and Bi-directional Relationship
One-One relationship
One-Many, Many-One relationship
Many-Many Relationship
Hibernate Query Language
Understanding Queries generated
Using first level caching to effectively increase performance
Criteria and Native Queries
Comments
Post a Comment