Part I. Introduction

Table of Contents

1. Introduction to Hibernate
A first Hibernate example
Introduction
Creating Java Project and classes
Hibernate configuration
Annotation or XML
Mapping
Create a session factory
Configuring Log4J
Create database and tables
Create a test client
Using MyEclipse for Hibernate projects
Adding libraries and Hibernate capabilities
Generate Hibernate mappings from existing db
Hibernate basics
What is Hibernate?
Powerful mapping
Powerful query languages
2. Hibernate Concepts - State of Objects
The three states of objects
Lazy initialization, a Hibernate problem
3. Working with Objects
Java Persistence versus Hibernate
Hibernate API
Saving
Updating
Deleting
Additional commands
EntityManager API
Saving
Updating
Deleting
Additional commands
4. A more complex example – web application
Summary