Chariot Education Services
Regular Location: Chariot - Philadelphia
Course: SpringSource Training - Hibernate with Spring
Learn to build ORM-based applications with Spring and the Hibernate ORM API. Annotation-driven mappings, JPA 2.0, Session and JPA Entity Manager APIs, more.
Upcoming Classes
For more dates or different classes, check our complete online schedule.
| Start Date | Pricing | Location | |
|---|---|---|---|
| Tue Jun 19 2012 | $2,000.00 | Chariot - Philadelphia | |
| Tue Sep 25 2012 | $2,000.00 | Chariot - Philadelphia |
Course Description
In this 3-day course you will learn how to create effective data-driven Spring applications with Hibernate. With the focus on the data tier, you will learn to configure Hibernate in the context of a Spring application, how to create efficient object/relational mappings with Hibernate and how to leverage the Spring Framework to facilitate Hibernate session, transaction and exception management. The course shows the use of both XML and annotation based configuration of both Spring and Hibernate.
This course focuses on explaining features of using Hibernate with Spring and goes on to discuss fundamental architectural issues. It’s important to know how to use certain parts of a framework, but it is even more important to be able to decide when to use them.
Prerequisites
- Basic understanding of JDBC and Relational Database Concepts
- Existing experience creating Java Web-based applications (helpful)
- Knowledge of Spring helpful – A basic introduction to Spring and Spring-based data access will take place on Day 1
Course Outline
Day 1 – Spring Framework Foundations
- Introduction to Spring
- Using Spring to configure an application
- Simplifying application configuration
- Annotation-based dependency injection
- Simplifying JDBC-based data access with Spring
- Driving database transactions in a Spring environment
Day 2 – Using the Hibernate ORM
- Introducing object-to-relational mapping (ORM)
- Getting started with Hibernate in a Spring environment
- Using JPA annotations and Hibernate XML
- Inheritance – considerations and trade-offs
- Defining custom user-types for Value Objects
- Using queries – HQL, criteria API, native (SQL)
- Hibernate in web applications – open session in view
- Using the different Java collection mappings
- Using joins and components to go beyond naive class to table mappings
Day 3 – Hibernate Internals and Configuration
- Working with Hibernate objects
- Lazy loading and detached objects
- Optimistic and pessimistic locking
- Mixing Hibernate and JDBC
- Performance tuning
- Advanced Features – interceptors, schema generation, caching, batching

