Using Hibernate

Recommended Duration:
2 Days
Benefits
Participants will use Hibernate Object-Relational Mapping (ORM) to create persistent database objects in Java programs.
Audience
Java developers who will use Hibernate to work with relational database data.
Prerequisites
Java developers with experience creating and testing Java programs. SQL and/or JDBC experience is not required but may be useful.
Exercises
Ten computer exercises will be conducted to emphasize major course topics. Exercises may be performed using the available IDE (Eclipse, IBM RAD, Oracle JDeveloper, etc…) or command-line tools.
Major Topics
  • Object Model vs. Relational Model
  • Object-Relational Mapping (ORM)
  • Configuring Hibernate Persistence
  • Java Persistence Architecture (JPA)
  • Hibernate Configuration
  • Hibernate and JPA Classes
  • Understanding Associations
  • Mapping with XML
  • Mapping with Annotations
  • Modifying associations & mapping
  • Session Object, SessionFactory, and Session lifecycle
  • Connection Pooling
  • Hibernate Query Language (HQL) and Javas Perisistence Query Language (JPQL)
  • Using “native” SQL
  • Transactions and Locking
  • Lazy and Eager Loading
  • Caching and Threads
  • Named queries
  • Criteria and QBE (Query By Example)
  • SQL Injection
  • Solving common issues and exceptions