Book description
Build fast, high-performance Java database applications with Hibernate.
Hibernate makes it far easier to build robust, high-performance database applications with Java. Now there's a practical, hands-on guide to using Hibernate's flexible, fast object/relational persistence and query services. Will Iverson covers every facet of development with Hibernate, from its mapping system toits advanced query mechanisms and transaction support.
Iverson shows you how to build Hibernate solutions that can integrate with Swing, with JSP, and even with EJBs utilizing bean-managed persistence. Using realistic examples, he demonstrates how to work with persistent objects, manage schema, and optimize database application performance. After you've mastered Hibernate's core techniques, Iverson presents best practices, tips, tricks, and style guidance for even more effective development. Coverage includes
Case study applications: starting from object/relational mapping files, Java code, and existing schema
Writing Hibernate queries using HQL—Hibernate's object-oriented SQL extension
Using Hibernate with Java-based Criteria and Example or native SQL
The Hibernate mapping file format in detail: a complete reference
How Hibernate handles class and database relationships
Managing session and database transactions with Hibernate
Tracking and optimizing performance with p6spy and IronTrack SQL
Automatically generating DDL scripts that create, update, and drop tables
Even if your Java database experience is limited to basic JDBC, this book will help you leverage Hibernate's remarkable power. You'll spend far less time writing code to bridge databases with Java applications—so you can get to market faster, with more features.
© Copyright Pearson Education. All rights reserved.
Table of contents
- Copyright
- Acknowledgments
- About the Author
- Preface
- 1. Overview
- 2. Getting Oriented
- 3. Starting from Java
- 4. Starting from an Existing Schema
-
5. Mapping Files
- Basic Structure
-
Mapping File Reference
- any
- array
-
bag
- Used By
- Contents
- Required Attributes
-
Optional Attributes
- access (defaults to property)
- batch size (defaults to 1)
- cascade (defaults to none)
- check (defaults to none)
- inverse (defaults to false)
- lazy (defaults to false)
- order-by (defaults to none)
- outer-join (defaults to auto)
- table (defaults to name value)
- schema (defaults to none)
- where (defaults to none)
- cache
-
class
- Used By
- Contents
- Required Attributes
-
Optional Attributes
- batch-size (defaults to 1)
- check (defaults to none)
- discriminator-value (defaults to fully qualified class name)
- dynamic-insert (defaults to false)
- dynamic-update (defaults to false)
- lazy (defaults to false)
- mutable (defaults to true)
- optimistic-lock (defaults to version)
- persister (defaults to Hibernate internal)
- polymorphism (defaults to implicit)
- proxy (defaults to none)
- schema (defaults to none)
- select-before-update (defaults to false)
- table (defaults to unqualified name)
- where (defaults to none)
- collection-id
- column
- component
- composite-element
- composite-id
- composite-index
- discriminator
- dynamic-component
- element
- generator
- hibernate-mapping
- id
- idbag
- import
- index
- index-many-to-any
- index-many-to-many
-
joined-subclass
- Used By
- Contents
- Required Attributes
-
Optional Attributes
- check (defaults to none)
- dynamic-insert (defaults to false)
- dynamic-update (defaults to false)
- extends (defaults to parent class/subclass)
- lazy (defaults to false)
- persister (defaults to Hibernate internal)
- proxy (defaults to none)
- schema (defaults to none)
- table (defaults to unqualified class name)
- key
- key-many-to-one
- key-property
- list
- many-to-any
- many-to-many
-
many-to-one
- Used By
- Contents
- Required Attributes
-
Optional Attributes
- access (defaults to property)
- cascade (defaults to none)
- class
- column (defaults to the name attribute)
- foreign-key (defaults to none)
- insert (defaults to true)
- not-null (defaults to false)
- property-ref (defaults to none)
- outer-join (defaults to auto)
- unique (defaults to false)
- update (defaults to true)
-
map
- Used By
- Contents
- Required Attributes
-
Optional Attributes
- access (defaults to property)
- batch-size (defaults to 1)
- cascade (defaults to none)
- check (defaults to none)
- inverse (defaults to false)
- lazy (defaults to false)
- order-by (defaults to none)
- outer-join (defaults to auto)
- schema (defaults to none)
- table (defaults to name value)
- sort (defaults to unsorted)
- where (defaults to none)
- meta
- meta-value
- nested-composite-element
- one-to-many
- one-to-one
- param
- parent
- primitive-array
- property
- query
- return
-
set
- Used By
- Contents
- Required Attributes
-
Optional Attributes
- access (defaults to property)
- batch-size (defaults to 1)
- cascade (defaults to none)
- check (defaults to none)
- lazy (defaults to false)
- order-by (defaults to none)
- outer-join (defaults to auto)
- schema (defaults to none)
- sort (defaults to unsorted)
- table (defaults to name value)
- where (defaults to none)
- sql-query
- subclass
- synchronize
- timestamp
- version
- 6. Persistent Objects
- 7. Relationships
- 8. Queries
- 9. Transactions
- 10. Performance
- 11. Schema Management
- 12. Best Practices, Style Guide, Tips and Tricks
- 13. Future Directions
Product information
- Title: Hibernate: A J2EE™ Developer's Guide
- Author(s):
- Release date: November 2004
- Publisher(s): Addison-Wesley Professional
- ISBN: 9780321268198
You might also like
book
40 Algorithms Every Programmer Should Know
Learn algorithms for solving classic computer science problems with this concise guide covering everything from fundamental …
book
Software Engineering at Google
Today, software engineers need to know not only how to program effectively but also how to …
book
Clean Code: A Handbook of Agile Software Craftsmanship
Even bad code can function. But if code isn't clean, it can bring a development organization …
book
Head First Design Patterns, 2nd Edition
You know you don’t want to reinvent the wheel, so you look to design patterns—the lessons …