Mastering Hibernate 4.x (TT3200)
About This Course
Mastering Hibernate 4.x is a four day in-depth course geared for experienced Java developers who need to understand what Hibernate is in terms of today's systems and architectures, and how to apply Hibernate to persistence requirements in Java and JEE applications.
Course Audience Profile
This an intermediate level and beyond Java / Hibernate training course, designed for developers who need to understand how and when to use Hibernate in Java or JavaEE /JEE applications.
Attendees should have practical basic Java development experience equivalent to our TT2100 Core Java Fundamentals course.
Course Pre-Requisite
Take Before: Students should have basic development skills and a working knowledge in the following topics, or attend these courses as a pre-requisite:
- TT2100 Mastering Java for OO Developers
At Course Completion
Working in a dynamic, lab-intensive hands-on coding environment students will learn to:
- Explain how the issues associated with object persistence in a relational model are addressed by Hibernate
- Understand the relationships between SQL, Java, JDBC, Spring, Java Persistence API, EJB 3.0, and Hibernate
- Discuss the challenges to adopting Hibernate in the enterprise
- Write applications that take advantage of the Hibernate Persistence Manager.
- Map Java classes to relational tables.
- Capture both relational and inheritance associations in metadata using either XML or the Java Annotations mechanism.
- Create and use mappings between Java classes and relational databases.
- Understand how identity and keys are handled in Hibernate.
- Understand the persistent object lifecycle and how that relates to transactions and concurrency.
- Take advantage of Hibernate's data filtering and interception.
Course Outline
Session: Introduction to Hibernate
Lesson: Introduction to Hibernate
- Hibernate ORM
- Lazy Loading
- Hibernate Supports Caching
Lesson: Getting Started with Hibernate
- Hibernate Classes
- Hibernate Configuration
- Mapping a Class to a Table
- The Session
- Attached and Detached
- Methods to Control Object Life-Cycle
Lesson: Hibernate Annotations
- Annotations Overview
- Hibernate Annotations Overview
- Annotations: Drawbacks and Benefits
- Getting to Hibernate Annotations
Session: ORM with Hibernate
Lesson: Basic ORM
- Hibernate Types
- Identifier Column
- Built-in Generator Types in Hibernate
- Mapping Information
- Joins
Lesson: Value-Type Collections and Components
- Mapping Aggregates (One-to-One)
- Collection Mapping
- Hibernate Bags
- Hibernate Lists
- Hibernate Sets
- Hibernate Maps
Lesson: Entity Associations (Relations)
- Entity Associations
- Mapping Associations
- Fetching Strategies
Lesson: Mapping Inheritance
- Strategies for Mapping Inheritance
- Inheritance and Proxy Caveats
Session: Using Persistent Objects
Lesson: Reading, Updating and Deleting Objects
- Session Scope
- States
- Transition: Transient to Persistent
- Transition: "Hibernated" to Persistent
- Transition: Detached to Persistent
Lesson: Transactions
- Framework-Managed Transactions
- Demarcating Transactions
- Concurrency
Session: Querying in Hibernate
Lesson: Querying for Objects
- Hibernate Type Implementations
- The Hibernate Query Language
- Pagination
- The Criteria API
- Detached Queries
Session: JPA and Hibernate (Optional)
Lesson: Java Persistence API (JPA) and Hibernate
- Java Persistence API (JPA) Overview
- JPA 2.0 Features
- Hibernate and JPA
- The JPA Package
- Hibernate and JPA 2.0 Compliance
Lesson: Entities and Persistence
- JPA Configuration Files
- Mapping Objects to the Database
- Annotated Mapping
- EntityManager Works with Entities
Sorry! It looks like we haven’t updated our dates for the class you selected yet. There’s a quick way to find out. Contact us at 502.265.3057 or email info@training4it.com
Request a Date