| |
| |
Preface | |
| |
| |
| |
Hibernate in a Hurry | |
| |
| |
| |
Installation and Setup | |
| |
| |
Getting an Ant Distribution | |
| |
| |
Check Your Java Version | |
| |
| |
Getting the Maven Tasks for Ant | |
| |
| |
Installing the Maven Tasks for Ant | |
| |
| |
Using the HSQLDB Database Engine | |
| |
| |
Using Hibernate Core | |
| |
| |
Setting Up a Project Hierarchy | |
| |
| |
| |
Introduction to Mapping | |
| |
| |
Writing a Mapping Document | |
| |
| |
Generating Some Class | |
| |
| |
Cooking Up a Schema | |
| |
| |
| |
Harnessing Hibernate | |
| |
| |
Configuring Hibernate | |
| |
| |
Creating Persistent Objects | |
| |
| |
Finding Persistent Objects | |
| |
| |
Better Ways to Build Queries | |
| |
| |
| |
Collections and Associations | |
| |
| |
Mapping Collections | |
| |
| |
Persisting Collections | |
| |
| |
Retrieving Collections | |
| |
| |
Using Bidirectional Associations | |
| |
| |
Working with Simpler Collections | |
| |
| |
| |
Richer Associations | |
| |
| |
Eager and Lazy Associations | |
| |
| |
Ordered Collections | |
| |
| |
Augmenting Associations in Collections | |
| |
| |
Lifecycle Associations | |
| |
| |
Reflexive Associations | |
| |
| |
| |
Custom Value Types | |
| |
| |
Defining a User Type | |
| |
| |
Defining a Persistent Enumerated Type | |
| |
| |
Using a Custom Type Mapping | |
| |
| |
Working with Persistent Enumerations | |
| |
| |
Building a Composite User Type | |
| |
| |
| |
The Annotations Alternative | |
| |
| |
Hibernate Annotations | |
| |
| |
Annotating Model Objects | |
| |
| |
An Alternate Approach | |
| |
| |
| |
Criteria Queries | |
| |
| |
Using Simple Criteria | |
| |
| |
Compounding Criteria | |
| |
| |
Projection and Aggregation with Criteria | |
| |
| |
Applying Criteria to Associations | |
| |
| |
Querying by Example | |
| |
| |
Property-Oriented Criteria Factories | |
| |
| |
| |
A Look at HQL | |
| |
| |
Writing HQL Queries | |
| |
| |
Selecting Properties and Pieces | |
| |
| |
Sorting | |
| |
| |
Working with Aggregate Values | |
| |
| |
Writing Native SQL Queries | |
| |
| |
| |
Playing Nice with Others | |
| |
| |
| |
Connecting Hibernate to MySQL | |
| |
| |
Setting Up a MySQL Database | |
| |
| |
Connecting to MySQL | |
| |
| |
Trying It Out | |
| |
| |
Looking at the Data | |
| |
| |
| |
Hibernate and Eclipse: Really Using the Hibernate Tools | |
| |
| |
Installing the Hibernate Tools in Eclipse | |
| |
| |
Creating a Hibernate Console Configuration | |
| |
| |
More Editing Support | |
| |
| |
The Hibernate Console Perspective | |
| |
| |
Code Generation | |
| |
| |
Mapping Diagrams | |
| |
| |
| |
Maven in More Depth | |
| |
| |
What Is Maven? | |
| |
| |
Installing Maven | |
| |
| |
Building, Testing, and Running a Project | |
| |
| |
Generating IDE Project Files using Maven | |
| |
| |
Generating Reports with Maven | |
| |
| |
A Maven Project Object Model | |
| |
| |
The Maven Build Lifecycle | |
| |
| |
Using the Maven Hibernate3 Plug-in | |
| |
| |
Becoming a Maven Maven | |
| |
| |
| |
Put a Spring in your Step: Hibernate with Spring | |
| |
| |
What Is Spring? | |
| |
| |
Writing a Data Access Object | |
| |
| |
Creating an Application Context | |
| |
| |
Putting It All Together | |
| |
| |
| |
The Finishing Touch: Stripes with Spring and Hibernate | |
| |
| |
Earn Your Stripes | |
| |
| |
Prepare Tomcat | |
| |
| |
Create the Web Application | |
| |
| |
Add Stripes | |
| |
| |
Dealing with Associations | |
| |
| |
| |
Hibernate Types | |
| |
| |
| |
The Criteria API | |
| |
| |
| |
Hibernate SQL Dialects | |
| |
| |
| |
Spring Transaction Support | |
| |
| |
| |
Where to Go Next | |
| |
| |
Index | |