Books & Videos

Table of Contents

  1. Hibernate in a Hurry

    1. Chapter 1 Installation and Setup

      1. Getting an Ant Distribution
      2. Check Your Java Version
      3. Getting the Maven Tasks for Ant
      4. Installing the Maven Tasks for Ant
      5. Using the HSQLDB Database Engine
      6. Using Hibernate Core
      7. Setting Up a Project Hierarchy
    2. Chapter 2 Introduction to Mapping

      1. Writing a Mapping Document
      2. Generating Some Class
      3. Cooking Up a Schema
    3. Chapter 3 Harnessing Hibernate

      1. Configuring Hibernate
      2. Creating Persistent Objects
      3. Finding Persistent Objects
      4. Better Ways to Build Queries
    4. Chapter 4 Collections and Associations

      1. Mapping Collections
      2. Persisting Collections
      3. Retrieving Collections
      4. Using Bidirectional Associations
      5. Working with Simpler Collections
    5. Chapter 5 Richer Associations

      1. Eager and Lazy Associations
      2. Ordered Collections
      3. Augmenting Associations in Collections
      4. Lifecycle Associations
      5. Reflexive Associations
    6. Chapter 6 Custom Value Types

      1. Defining a User Type
      2. Defining a Persistent Enumerated Type
      3. Using a Custom Type Mapping
      4. Working with Persistent Enumerations
      5. Building a Composite User Type
    7. Chapter 7 The Annotations Alternative

      1. Hibernate Annotations
      2. Annotating Model Objects
      3. An Alternate Approach
    8. Chapter 8 Criteria Queries

      1. Using Simple Criteria
      2. Compounding Criteria
      3. Projection and Aggregation with Criteria
      4. Applying Criteria to Associations
      5. Querying by Example
      6. Property-Oriented Criteria Factories
    9. Chapter 9 A Look at HQL

      1. Writing HQL Queries
      2. Selecting Properties and Pieces
      3. Sorting
      4. Working with Aggregate Values
      5. Writing Native SQL Queries
  2. Playing Nice with Others

    1. Chapter 10 Connecting Hibernate to MySQL

      1. Setting Up a MySQL Database
      2. Connecting to MySQL
      3. Trying It Out
      4. Looking at the Data
    2. Chapter 11 Hibernate and Eclipse: Really Using the Hibernate Tools

      1. Installing the Hibernate Tools in Eclipse
      2. Creating a Hibernate Console Configuration
      3. More Editing Support
      4. The Hibernate Console Perspective
      5. Code Generation
      6. Mapping Diagrams
    3. Chapter 12 Maven in More Depth

      1. What Is Maven?
      2. Installing Maven
      3. Building, Testing, and Running a Project
      4. Generating IDE Project Files using Maven
      5. Generating Reports with Maven
      6. A Maven Project Object Model
      7. The Maven Build Lifecycle
      8. Using the Maven Hibernate3 Plug-in
      9. Becoming a Maven Maven
    4. Chapter 13 Put a Spring in your Step: Hibernate with Spring

      1. What Is Spring?
      2. Writing a Data Access Object
      3. Creating an Application Context
      4. Putting It All Together
    5. Chapter 14 The Finishing Touch: Stripes with Spring and Hibernate

      1. Earn Your Stripes
      2. Prepare Tomcat
      3. Create the Web Application
      4. Add Stripes
      5. Dealing with Associations
  1. Appendix Hibernate Types

    1. Basic Types

    2. Custom Value Types

    3. “Any” Type Mappings

    4. All Types

  2. Appendix The Criteria API

    1. The Criterion Factory

    2. The Projection Factory

    3. The Order Factory

    4. The Property Factory

  3. Appendix Hibernate SQL Dialects

    1. Getting Fluent in the Local SQL

  4. Appendix Spring Transaction Support

    1. Using the Spring Framework’s Transactional Annotation

    2. Using a JTA Transaction Manager

  5. Appendix Where to Go Next

    1. Online Manuals

    2. Books

    3. Source Code

    4. Dealing with Newer Releases

    5. Getting Involved

  6. Colophon