Overview
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.
Synopsis
Written for experienced developers proficient in Java, SQL, and ANT, this guide introduces Hibernate as a bridge between Java applications and databases. It describes three different approaches starting from a Hibernate mapping file, a Java source file, or an existing database schema, then discusses mapping files, persistent objects, relationships, queries, transactions, and tools for identifying potential Hibernate performance issues. Annotation ©2004 Book News, Inc., Portland, OR
Editorials
From Barnes & Noble
The Barnes & Noble ReviewIf you build Java database applications, Hibernate will let you get more done, better, faster, with less work. And it’s free. A “no-brainer”? With this book’s guidance, you betcha.
Will Iverson covers each leading approach to using Hibernate: creating a new object-relational mapping file and using it to generate both your database schema and Java classes; or starting with an existing schema or Java code. You’ll learn how to bind Java objects to a specific schema; then create, update, query, and delete records. Iverson shows how Hibernate can manage complex relationships such as Java collections and many-to-many database relationships (it’s easier than you think). You’ll learn two ways to build rich queries; how to measure Hibernate application performance; and how to improve your Hibernate code.
Hate hassling with object/relational integration? Problem solved. Bill Camarda, from the February 2005 Read Only