Applying Hibernate to Persistence in Java (TT-3200)
Geared for experienced Java developers, this comprehensive, 4 day hands-on course provides an in-depth introduction to Hibernate. With a strong hands-on character and many ready to use practical demos, this course enables developers to put their newly-acquired skills into action, the minute they leave the classroom. Our detailed course materials and student resource CDs server as excellent materials for post-training review as well.
Who Can Benefit
This is an intermediate level Java programming course, designed for developers who wish understand and Hibernate for application development.
Prerequisites
Students should have at least six months prior Java development experience, including some experience using Server Side technologies (Servlets/JSPs) Students should be comfortable creating a servlet and JSP.
Hands-On Learning
Throughout the course students will be led through a series of progressively advanced topics, where each topic consists of lecture, group discussion, comprehensive hands-on lab exercises, and lab review.
This workshop is about 50% hands-on lab and 50% lecture. Multiple detailed lab exercises are laced throughout the course, designed to reinforce fundamental skills and concepts learned in the lessons. Because these lessons, labs and projects are presented in a building block fashion, students will gain a solid understanding of not only the core concepts, but also how all the pieces fit together in a complete application. At the end of each lesson, developers will be tested with a set of review questions to ensure that he/she has fully understands that topic.
Hands-On Labs include:
Map a class (Member) to the database-The objective is to map a class with fields of different types to the database. This will also teach students how to setup the environment
Implement a composition-The objective of this exercise is to understand how to use Hibernate's components
Implement collections-The objective is to understand how to map different collections.
Map different associations-The objective is to map different association types to the database in two real life use cases.
Map specializations-The objective is to understand how to map class inheritance to the database
Implement a service-per-request proxy and work with detached objects-The objective is to understand how to one could implement the service-per-request pattern and how to control the life-cycle of the detached entity.
Transactions and Concurrency-See the effect of optimistic and pessimistic concurrency and how to develop these schemes
Code:
TT-3200
Length:
4 days
Type:
Instructor-Led
Certified By:
Other Java :: Development :: Trivera
Tuition:
$1,850 / contact for GSA GOV.
This course is taught by Certified instructors. There is a difference. Learn More
This course is in the following categories. Click the categories to find similar courses and topics of interest.
Session: Using persistent Objects - Lesson: Reading, updating and deleting objects
Understand the three object states (Transient, Persistent and detached)
Understand how to transition from the transient to persistent state (IOW how to make objects persistent)
Understand how to retrieve hibernated objects using the primary key
Understand how to retrieve hibernated objects using basic HQL
Understand how to update entities which are in the persistent state (attached updates)
Understand how to transition entities form persistent to detached state
Understand the detached state of an entity
Discuss the briefcase model
Understand how to transition from detached (back) to persistent (IOW how to re-attach detached objects)
Understand the difference between update, merge
Removing entities
Discuss the different cascade options and their impact on entity associations
Lesson: Transactions
Describe the need for transaction control.
Explain isolation levels.
Discuss the three different ways of demarcating transactions
Understand the different ways of demarcating transaction in a managaed Java EE environment
Understand how to correctly use the contextual session
Use the Hibernate Transaction API to hide transaction implementation
Correctly handle exceptions
Understand Optimistic vs Pessimistic locking schemes
Implement Optimistic concurrency using Hibernate's automatic versioning
Implement Pessimistic concurrency using Lock modes
List different optimistic lock modes supported in Hibernate
Locking using read for update
Understand the read for update scope on association (and how to cascade the lock)
Appendix - Session: Querying in Hibernate - Lesson: Querying for objects
Introduce two ways of querying (Criteria and HQL)
Understand the basic HQL syntax
Introduce the org.hibernate.Query class
Working with the results of a query
Handling different resultset element types (unique, array of entity, scalar)
Use the relationships between entities in your HQL
Use HQL expressions
Use aggregate functions
Use the group by clause
Understand how to enable Pagination
Use parametrized HQL
Understand the concept of Named Queries
Use the org.hibernate.Criteria to query
Understand how to use Query By Example (QBE)
When you take a certified course with ExitCertified, you are learning from
the creators of the products you use. Our commitment to your IT
community, along with our authorization to deliver certified courses,
ensures you receive a premium training experience.