Collin College – Continuing Education

Course Syllabus

Course:
XJVA 0400 0: Introduction to Hibernate; CRN 73063 – UPDATE
Date/Time/Sessions:
12/10/2014 – 12/19/2014; Wed/Fri; 6:30 PM – 9:30 PM
Instructor:
Oz Brown
Phone:
(866) 220-4777 (day/evening hours, allow 24 hour response time)
E-mail:
education@ogbrown.com (anytime, allow 24 hour response time)

Course Description:

Learn how to use Hibernate to do Object-Relational mapping (ORM) from Java classes to database tables; and Java data types to SQL data types. Use Hibernate with other open source tool; MySQL and Eclipse. Explore the data query and retrieval facilities and reduce your development time otherwise spent with manual data handling in SQL and JDBC.

Course Prerequisite(s):

Java Programming II, or equivalent experience, and knowledge of SQL, JDBC, and Eclipse

Course Objectives:

  • Learn how to implement Object-Relational Mapping (ORM) using Hibernate.
  • Explore the facilities available in Hibernate including retrieval and data persistence.
  • Use Hibernate with other open source tools (such as Eclipse and MySql).
  • Implement a Data Access Object (DAO) layer in Hibernate.

Student Expectations:

  • Students will attend as many of the scheduled classes as possible. 4 Sessions required for 90% attendance.
  • Students will be personally responsible for any assignments given in class.
  • Students will help the instructor conduct class in a professional and mature manner 🙂
  • Students will have fun and learn.

Textbook(s):

Hibernate Reference Guide 3.5.6; In Class Materials and Online References

Next Class Possibilities:

Java Web Application Development I & II, Java & XML, JDBC Essentials, Introduction to Spring

Lesson Plan – By session:

Session 1:

  • +Review of SQL
  • +Review of JDBC
  • Introduction to ORM and Hibernate
  • Hibernate Architecture

Session 2:

  • In Class Project – Simple Address Book App
  • Simple Address Book – Design
  • Simple Address Book – JDBC Implementation

Session 3:

  • Major Hibernate Components
  • Setting Up the Hibernate Environment
  • Hibernate States
  • Introduction to ORM Mapping
  • Hibernate Mapping using Annotations
  • Hibernate Query Languages (HQL and Criteria)
  • Crud Operations and DAOs

Session 4:

  • Cascading, Eager & Lazy Fetching
  • Hibernate Mapping using XML Configuration
  • Misc