Hibernate: A J2EE Developer's Guide (Paperback)
$700Professional Hibernate (Paperback)
$399LPIC 1 Exam Cram 2: Linux Professional Institute Certification Exams 101 and 102 (Paperback)
$299Mule 2: Official Developer's Guide to ESB and Integration Platform
$299Mule in Action (Paperback)
$990Head First Programming: A Learner's Guide to Programming Using the Python Language (Paperback)
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.
Table of Contents:
Why Object/Relational Mapping?
What Is Hibernate?
Comparing JDBC to Hibernate.
Hibernate's Mapping System.
Other Java/Database Integration Solutions.
Enterprise JavaBeans (EJB) 2.X.
Enterprise JavaBeans (EJB) 3.0.
Java Data Objects (JDO).
Other Commercial O/R Tools.
How to Obtain and Install.
Hibernate Extensions Distribution.
Introduction to MySQL.
2. Getting Oriented.
Mapping Files in Depth.
Generating Java Source.
Generated Persistent Classes.
Generated Database Schema.
3. Starting from Java.
Java Object Model.
Working with Xdoclet.
Generated Mapping Files.
Working with Artifacts and Owners.
4. Starting from an Existing Schema.
Generated Mapping Files.
Working with the Database.
5. Mapping Files.
Mapping File Reference.
6. Persistent Objects.
Setting up the Configuration.
Obtaining the Session.
Objects and Identity.
What Is Identity?
Identity within a Session.
Generating Identity (Primary Keys).
Built-In Hibernate Generators.
Java Collection Relationships.
Java Class Relationships.
Using Hibern8 IDE.
Selected Properties List.
Easily Override Lazy Settings.
Native SQL Queries.
Introduction to Transactions.
Sessions, Transactions, and Flushing.
Optimistic and Pessimistic Locking.
Finding and Solving Problems.
Configuring a Cache.
Using a Custom Cache.
11. Schema Management.
Updating an Existing Schema.
Schema Updates from within an Application.
Command Line Schema Updates.
Ant Task Schema Updates.
Generating Update and Drop Scripts.
Command-Line Script Generation.
Ant Task Script Generation.
Generating Multiple Scripts.
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.
Where to Start?
Start with Many-to-One and One-to-Many.
Profile Database Fetching.
13. Future Directions.
Here and Now.