Java EE Programming: Hibernate, Part 1 of 3
Interactive

Java EE Programming: Hibernate, Part 1 of 3

LearnNow Online
Updated Oct 25, 2018

Course description

As data models get more complex it becomes harder for programmers to create applications to access that data. Enter Java Hibernate. Hibernate is a middle-tier developer framework for Object to Relational Mapping (ORM). A Hibernate tier is used as a go-between from the data tier to the client tier thus creating an automatic translation between the Object Oriented model and the required relational data model. This course will start you on the journey to understand Hibernate. First, you will cover the basics of what Hibernate is and what it does. Next, move to ORM and persistence in class mappings and many other items. Then you will see Value types, components and Collections and finish up with Entity Associations.

Each LearnNowOnline training course is made up of Modules (typically an hour in length). Within each module there are Topics (typically 15-30 minutes each) and Subtopics (typically 2-5 minutes each). There is a Post Exam for each Module that must be passed with a score of 70% or higher to successfully and fully complete the course.


Prerequisites

This course assumes you are familiar with object-oriented principals and have a solid practical understanding of polymorphism in Java. You must also have a working knowledge of Eclipse IDE for Java EE.


Meet the expert

Greg Matus

Greg Matus combines his practical programming skills and mentoring excellence to develop the highest quality educational programs available. His technical focus includes developing programs and projects focused around advanced application development, performance, and tuning skills and technologies. His specialties include Java, advanced J2EE / JEE, AJAX, XML, Web Services, JSP, SQL, JDBC and Database topics, Oracle, Eclipse, WebLogic, and more.

Video Runtime

120 Minutes

Time to complete

160 Minutes

Course Outline

Overview

Hibernate Intro (36:18)

  • Introduction (02:07)
  • Hibernate ORM (06:03)
  • Hibernate Approaches (01:20)
  • Hibernate Uses Lazy Loading (03:06)
  • ORM Without Lazy Loading (02:40)
  • Benefits of Using Hibernate (04:18)
  • Example of Lazy Loading (01:51)
  • Loading an Entire Object Graph (03:30)
  • Hibernate Supports Caching (03:18)
  • L1 and L2 Cache in Hibernate (02:15)
  • Hibernate and J2EE (02:29)
  • Additional Benefits (02:48)
  • Summary (00:28)
Getting Started

Hibernate Getting Started (24:01)

  • Introduction (00:44)
  • Hibernate: A First Look (02:22)
  • Getting Hibernate to Work (01:56)
  • Classes & Dependent Libraries (02:39)
  • Configurable Logging Categories (01:39)
  • Configuration Using XML (01:21)
  • Hibernate Configuration (04:03)
  • Hibernate Configuration Files (10:55)
  • Mapping a Class to a Table (01:32)
  • The Mapping File (03:55)
  • Optional Attributes (02:56)
  • The Employee Mapping (12:47)
  • The Session (05:05)
  • Ways of Obtaining the Session (03:50)
  • Obtaining the Session Via Spring (02:45)
  • Session and EJB 3.0 (01:01)
  • Attached and Detached (00:00)
  • Methods: Control Object Life-Cycle (14:01)
  • Methods for Reading (01:35)
  • Criteria for Searching (05:09)
  • Transactional Methods (01:04)
  • Other Methods (02:04)
  • Summary (00:26)