Description
Book SynopsisThis guide walks the reader through the ins and outs of using Hibernate, from installation and configuration, to complex associations and composite types.
Table of ContentsPreface; Chapter 1. Installation and Setup Getting an Ant Distribution Getting the HSQLDB Database Engine Getting Hibernate Setting Up a Project Hierarchy; Chapter 2. Introduction to Mapping Writing a Mapping Document Generating Some Class Cooking Up a Schema Connecting Hibernate to MySQL; Chapter 3. Harnessing Hibernate Creating Persistent Objects Finding Persistent Objects Better Ways to Build Queries; Chapter 4. Collections and Associations Mapping Collections Persisting Collections Retrieving Collections Using Bidirectional Associations Working with Simple Collections; Chapter 5. Richer Associations Using Lazy Associations Ordered Collections Augmenting Associations in Collections Lifecycle Associations Reflexive Associations; Chapter 6. Persistent Enumerated Types Defining a Persistent Enumerated Type Working with Persistent Enumerations; Chapter 7. Custom Value Types Defining a User Type Using a Custom Type Mapping Building a Composite User Type; Chapter 8. Criteria Queries Using Simple Criteria Compounding Criteria Applying Criteria to Associations Querying by Example; Chapter 9. A Look at HQL Writing HQL Queries Selecting Properties and Pieces Sorting Working with Aggregate Values Writing Native SQL Queries; Appendix A. Hibernate Types; Appendix B. Standard Criteria; Appendix C. Hibernate SQL Dialects; Index