Java Persistence with Hibernate and JPA

November 12-15 2013, JHU Dorsey Center, Elkridge MD
Co-Sponsored by Johns Hopkins Engineering for Professionals

The previously separate Spring and Hibernate courses have now been combined into a single Spring and Hibernate training course. Please see that course listing, or contact for information on a customized onsite version at your location. Lower price, more convenient for your developers, and customizable content. For clients in the Baltimore/Washington area, late afternoon, evening, or weekend sessions can be arranged.

“Outstanding whirlwind exploration of Spring and Hibernate, with assured answers to specific questions. Highly enthusiastic instruction (I am in awe!).”

“This has been a fantastic course... I've come out of this class with a very firm grasp on Hibernate and Spring technologies.”

“Lots of cutting-edge [Spring and Hibernate] technology instruction taught in a student-friendly manner.”

“Matt is a great instructor -- very knowledgeable in the subject matter, very willing to answer any/all questions.”

more student reviews

This page describes the public (open enrollment) training course on Hibernate and JPA to be held at in Elkridge, MD (co-sponsored by the Johns Hopkins University Engineering for Professionals program). The entire course is personally developed and taught by experienced Java EE developer and instructor Matt Cherry. No contract instructor teaching someone else's materials!

If you are looking for customized training courses on Java 7 or 8, JSF 2, PrimeFaces, Android, Ajax, jQuery, Hadoop (and Hadoop cerfication), GWT, Spring, Hibernate, Servlets, JSP, HTML5, or RESTful Web Services taught on-site at your company, please see this page.

Register Early! Five of's previous public short courses were full, so reserve your spot today. Registrations are taken in the order they are received.

Course Overview

Java EE has made tremendous strides in recent years, but through it all few technologies have been as influential as Hibernate. This framework greatly contributed to the rebirth of the JEE persistence component known as JPA – the Java Persistence API. In this course students will discover the various ways to map Java objects to database tables through the concept known as Object-Relational Mapping. Learn how to map an object to one table, many tables, or even leverage inheritance in the database without having to write a single line of SQL in your Java application. Students will learn the native Hibernate API and the standardized JPA interface, as well as the advantages and shortcoming of each of these technologies. Reinforced with real life applications and examples, as well in-class exercises, this class leaves students ready to reap the benefits the moment they leave the classroom. normally runs on-site J2EE and Ajax training courses at customer locations. This is easier administratively, is better for clients since the topics can be customized, and is more cost effective for students since no travel is required. However, due to demand from those who do not have enough students for an on-site course, coreservlets will be running a public (open enrollment) Hibernate and JPA training course November 12-15 in Elkridge MD.

The course is taught by experienced Java EE developer and instructor Matt Cherry.

About the Instructor

Matt Cherry is an experienced enterprise architect, J2EE software engineer, and Oracle DBA. He has worked in both the private and public sectors, including the intelligence community, where he has designed and built a number of real-world systems using Spring, Hibernate, Web Services, and related technologies. In addition to being an instructor for, Matt is a full-time consultant for Elegant Technical Solutions (ETS) where he leads several large enterprise projects. Matt also serves as an adjunct professor in the part-time graduate program for Computer Science at Johns Hopkins University, where he teaches Enterprise System Design and Implementation.


The course consists of an approximately equal mixture of lecture and hands-on lab time. It assumes that all students have moderate to strong Java skills; it is not a course for newcomers to Java. It does not assume any previous exposure to Spring, Hibernate, or JPA.


JHU/EP Logo The course will be held at the Johns Hopkins Dorsey Center in Elkridge, Maryland. This is a modern, comfortable venue with separate computers for each student, fast internet connections, and with coffee, snacks, and meals included. Class meets from 8:30 am to 4:30 pm daily. For students who prefer to bring their own laptops, fast wifi is available, and you can email the instructor for information on installing the class software in advance.

For Maryland residents, the location is centrally located 5 minutes from BWI airport and has plenty of free parking. For out-of-town students, there are many hotels within 1 mile.


The four-day course costs $2095 per student and includes an extensive course notebook, a commercial textbook, exercises, exercise solutions, breakfast, snacks, and lunch. Compare this price to courses from Sun, Learning Tree, GlobalKnowledge, and Oracle University that cost around $2400 for four-day courses and $3000 for five-day courses that do not include textbooks or meals. Besides, those courses almost always use an unknown instructor who did not develop the course materials and often lacks significant real-world development experience.

To register, fill out and send in the course registration form. Space is limited: six previous offerings of courses were full. Bonus: Register at least a week in advance and get a $50 gift certificate from

Questions and More Info

  • Guinea pigs? No! courses are well-tested, having been taught in 7 countries and dozens of US venues. We don't use your developers as guinea pigs for new materials.
  • Regurgitation? No! Matt developed all his own materials. No contract instructor regurgitating memorized PowerPoint slides.
  • Green? No! Matt is an experienced developer, and has built several applications using Hibernate and JPA that are still in use today. The course gives best practices and real-world strategies. No newbie instructor dodging tough questions.


The Need for Hibernate

  • N-Tier application design
  • Container vs. stand alone applications
  • Refresher on traditional JDBC approach
  • Hibernate installation and setup

Hibernate At a Quick Glance – A Simple Example

  • Hibernate origin
  • Hibernate design
  • Simple but complete example

Association & Collection Mapping

  • Realizing association relationships
  • Mapping collections

Components & Inheritance Mapping

  • Recognizing and implementing components
  • Hibernate inheritance techniques

Object Lifecycle, Persistence and Session Management

  • Object States
  • CUD (no querying)
  • Session Management

Executing Queries

  • Binding Parameters
  • Running Query
  • Iterating through results
  • Tuples/Scalar (Returning multiple object types vs. just simple data values)
  • Externalizing Queries in mapping file
  • Queries in Native SQL

HQL in Detail and Criteria Queries

  • The Hibernate Query Language (HQL)
  • Criteria Queries

Transaction Management

  • Introduction to Transactions
  • Optimistic concurrency control (version column)
  • Pessimistic locking
  • Connection release

Advanced Hibernate Features

  • Batch processing
  • 2nd Level Cache
  • Fetching strategies

EJB 3.0 Compliance & Best Practices

  • JPA
  • Entity manager
  • Annotations
  • Best practices