More Books
Hibernate: A J2EE Developer's Guide
Hibernate: A J2EE™ Developer's Guide
Table of Contents
Copyright
Acknowledgments
About the Author
Preface
Required Skills
Roadmap
Chapter 1. Overview
Why Object/Relational Mapping?
What Is Hibernate?
Comparing JDBC to Hibernate
Hibernate's Mapping System
Other Java/Database Integration Solutions
How to Obtain and Install
Supported Databases
Chapter 2. Getting Oriented
Application Architecture
Mapping Files
Generating Java Source
Application Configuration
Web Application
JSP Interface
Chapter 3. Starting from Java
Java Object Model
Generated Mapping Files
Generated Schema
Working with Artifacts and Owners
Chapter 4. Starting from an Existing Schema
Initial Schema
Using Middlegen
Generated Mapping Files
Generated Java
Working with the Database
Chapter 5. Mapping Files
Basic Structure
Mapping File Reference
Chapter 6. Persistent Objects
Sessions
Objects and Identity
Life-Cycle Methods
Chapter 7. Relationships
Database Relationships
Java Collection Relationships
Java Class Relationships
Any-Based Relationships
Bi-directional Relationships
Chapter 8. Queries
HQL
HQL Reference
Select
From
Where
Group By
Having
Order By
Criteria Queries
Native SQL Queries
Chapter 9. Transactions
Introduction to Transactions
Optimistic and Pessimistic Locking
Chapter 10. Performance
Finding and Solving Problems
Queries
Inserts
Connection Pooling
Caching
Chapter 11. Schema Management
Updating an Existing Schema
Generating Update and Drop Scripts
Chapter 12. Best Practices, Style Guide, Tips and Tricks
Reducing Code with Inversion of Control
Reducing Session Creation Impact with ThreadLocal
Using Hibernate as an EJB BMP Solution
Integrating with Other Technologies
Applications That Use Hibernate
Strategies for Getting Started
Chapter 13. Future Directions
Hibernate 3.0
EJB 3.0
Here and Now
Index
SYMBOL
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X

Index


[SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [X]

C3p0 configuration options
Caching
     statements
     troubleshooting 2nd 3rd 4th 5th 6th 7th 8th 9th 10th 11th 12th 13th 14th 15th 16th 17th 18th 19th
Calls, wrapping 2nd 3rd 4th 5th
Cascade attributes 2nd 3rd 4th 5th 6th 7th 8th 9th 10th 11th
Cascade="delete" attribute
Castor
Chaining methods
check 2nd
     class 2nd 3rd 4th 5th
     class hierarchy
     collection-id
     column 2nd 3rd 4th 5th 6th 7th 8th 9th 10th 11th
     component
     composite-element
     composite-id
     composite-index
     constrained
     default-access
     default-cascade
     discriminator
     discriminator-value 2nd
     dynamic-component
     dynamic-insert 2nd
     dynamic-update 2nd 3rd
     element
     element-class
     extends
     force
     foreign-key 2nd 3rd
     formula
     generator
     hibernate-mapping
     id-type 2nd 3rd
     idbag
     import
     index 2nd
     index-many-to-any
     index-many-to-many
     inherit
     insert 2nd
     inverse 2nd 3rd
     joined-subclass
     key
     key-many-to-one
     key-property
     lazy 2nd 3rd 4th 5th 6th 7th 8th 9th 10th 11th 12th
     lazy="true"
     length 2nd 3rd 4th 5th 6th 7th 8th 9th 10th 11th 12th 13th 14th
     list
     many-to-any
     many-to-many
     many-to-one
     map
     mapping files 2nd 3rd 4th 5th 6th 7th 8th [See also Mapping files]
     meta 2nd
     meta-type 2nd
     meta-value
     mutable
     name 2nd [See also Name attribute]
     nested-composite-element
     not-null 2nd 3rd 4th 5th 6th 7th 8th 9th 10th
     one-to-many
     one-to-one
     optimistic-lock
     order-by 2nd 3rd 4th 5th
     outer-join 2nd 3rd 4th 5th 6th 7th 8th 9th 10th 11th 12th 13th 14th
     package
     param
     parent
     persister 2nd 3rd
     polymorphism
     primitive-array
     property
     proxy 2nd 3rd
     rename
     return
     schema 2nd 3rd 4th 5th 6th 7th 8th 9th 10th 11th 12th 13th 14th 15th 16th
     select-before-update
     set
     sort 2nd
     sql-query
     sql-type
     subclass
     synchronize
     table 2nd 3rd 4th 5th 6th 7th 8th 9th
     timestamp
     type 2nd 3rd 4th 5th 6th 7th 8th 9th 10th 11th
     unique 2nd 3rd 4th
     unique-key
     unsaved-value 2nd 3rd 4th
     update 2nd 3rd 4th
     usage
     value
     version
     where 2nd 3rd 4th 5th
Check attributes 2nd 3rd 4th 5th 6th 7th 8th 9th 10th 11th 12th 13th 14th 15th 16th 17th 18th 19th
Class attributes 2nd 3rd 4th 5th 6th 7th 8th 9th 10th 11th 12th 13th 14th 15th 16th 17th 18th 19th 20th 21st 22nd 23rd 24th 25th
Class hierarchy attributes
Classes
     any association
     Author 2nd 3rd 4th
     Examresult
     GenerateData
     GenerateReports
     HibernateSessionWrapper
     IoC 2nd 3rd 4th 5th 6th
     Java 2nd 3rd 4th 5th 6th 7th 8th 9th 10th 11th 12th 13th
     JavaBeans
     persistent 2nd 3rd 4th
     Post 2nd 3rd 4th
     SchemaUpdate
     ThreadLocal 2nd 3rd
Clauses
     from 2nd 3rd 4th 5th
     HQL
     where 2nd 3rd
CMP (container-managed persistence) 2nd
Code
    applications
         configuration 2nd 3rd 4th
         JSP interfaces 2nd 3rd 4th 5th 6th 7th 8th 9th 10th 11th 12th 13th 14th 15th 16th 17th 18th 19th 20th 21st 22nd 23rd 24th 25th 26th 27th 28th 29th 30th
         Web applications
     generated persistent classes 2nd 3rd 4th
     generating 2nd 3rd 4th
     hash
    HQL
         notation references
         references
     integration
         EJB 2.X
         EJB 3.0
         JDO
     inversion of control 2nd 3rd 4th 5th 6th
     JDBC 2nd 3rd
     overview of Hibernate 2nd
     ThreadLocal class 2nd 3rd
     XDoclet configuration
Collection-id attributes
Collections
     Java 2nd 3rd 4th
Column attributes 2nd 3rd 4th 5th 6th 7th 8th 9th 10th 11th 12th 13th 14th 15th 16th 17th 18th 19th 20th 21st 22nd 23rd 24th 25th 26th 27th 28th 29th 30th 31st 32nd
Columns
     many-to-one
     mapping
Command line
     SchemaExport tool
commands
    databases
         generating
         mapping files 2nd 3rd 4th 5th
Commands
     GROUP BY
     ORDER BY
     schema
Committing transactions
Component attributes
Components
     JavaBeans
     relationships 2nd 3rd
Composite identity 2nd
Composite-element attributes
Composite-id attributes
Composite-index attributes
Configuration 2nd
     Apache DBCP options 2nd
     applications 2nd 3rd 4th
     c3p0
     caches 2nd 3rd 4th 5th 6th 7th 8th 9th 10th 11th 12th 13th 14th 15th
     code
     Hibern8 IDE
     initialization
     IronTrack SQL 2nd 3rd 4th
     JDBC properties
     JNDI properties
     Middlegen 2nd 3rd 4th 5th 6th 7th 8th 9th
     MySQL
     objects
         deleting
         identity 2nd 3rd 4th 5th 6th 7th 8th
         life-cycles 2nd 3rd 4th 5th 6th 7th 8th 9th 10th 11th 12th 13th
         refreshing
         searching 2nd 3rd
         updating
     posts
     properties 2nd
     Proxool options
     sessions 2nd 3rd
Configuration objects 2nd 3rd
Conflicts, optimistic locking 2nd
Connections
     Middlegen
     pooling 2nd
     properties
Constrained attributes
Container-managed persistence (CMP) 2nd
control locking
Control, inversion of 2nd 3rd 4th 5th 6th
Convention directories
Creation, update, retrieval, and delete [See CRUD]
Criteria
     API
CRUD (creation, update, retrieval, and delete) operations
Customization
    Apache DBCP configuration [See Configuration]
    c3p0 configuration [See Configuration]
    caches [See Configuration]
    integration [See Configuration]
        EJB 2.X [See Configuration]
        EJB 3.0 [See Configuration]
        JDO [See Configuration]
    Proxool configuration [See Configuration]
    schemas
        Ant [See Configuration]
        command line [See Configuration]