Java EE Programming: Hibernate, Part 2 of 3
Interactive

Java EE Programming: Hibernate, Part 2 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

215 Minutes

Time to complete

255 Minutes

Course Outline

Basic ORM

Basic ORM (51:39)

  • Introduction (00:44)
  • Hibernate Types (06:00)
  • Hibernate Value Types (01:31)
  • Creating POJO Entity Types (11:38)
  • The Element (03:22)
  • Identifier Column (01:41)
  • Built-in Generator Types (00:59)
  • Identifier Column (01:50)
  • Entity with Composite id Field (00:38)
  • Composite Key as Component (01:27)
  • Mapping Info (00:32)
  • Element Overview (01:48)
  • Element Mapping (02:37)
  • Joins (04:05)
  • Demo: Setting up Database (02:31)
  • Demo: Joined Mapping (13:26)
  • Demo: Two String Method (04:11)
  • Demo: SessionUtil (05:03)
  • Demo: Member DAO Implementation (11:41)
  • Demo: Mapping Entity (11:58)
  • Demo: Hibernate Config. File (09:42)
  • Demo: Running the Test (13:46)
  • Summary (00:17)
Components and Collections

Value Types & Components (01:35)

  • Introduction (00:43)
  • Mapping Aggregates (07:14)
  • Using the component (02:36)
  • Using a join (01:07)
  • Using the join (00:18)
  • Collection Mapping (04:23)
  • Hibernate Replacement (00:35)
  • Use Appropriate Interface (00:20)
  • Common Syntax Collection Types (01:49)
  • Working with New Example Order (01:45)
  • Example Using a Set (03:36)
  • Hibernate Bags (03:46)
  • Example Using idbag (00:34)
  • Hibernate Lists (03:06)
  • Hibernate Sets (03:00)
  • Example of a Sorted Set (00:22)
  • Hibernate Maps (02:04)
  • Example of Map Using Key (02:56)
  • Demo: Construction Code (10:38)
  • Demo: Testing (10:03)
  • Summary (00:30)

Collections (42:35)

  • Introduction (00:29)
  • Demo: Collections (05:12)
  • Demo: Mapping (06:24)
  • Demo: Convenience Method (04:43)
  • Demo: Modify Mapping (10:39)
  • Demo: Review (05:56)
  • Demo: Rerun Client (04:47)
  • Demo: HQL (04:00)
  • Summary (00:21)
;