Pearson Books home
Browse and buy books online Information for authors Browse our academic online catalogue Resources for schools and English language teaching Online courses and companion websites Online ordering for trade customers
The Reg Bookshop home > Hibernate
Business BooksBusiness
Careers & Personal Development BooksCareers & Personal Development
Computing BooksComputing
Economics BooksEconomics
Education BooksEducation
Engineering BooksEngineering
Finance and Accounting BooksFinance and Accounting
History BooksHistory
Humanities BooksHumanities
Languages BooksLanguages
Law & Criminology BooksLaw & Criminology
Leisure, Hospitality & Tourism BooksLeisure, Hospitality & Tourism
Life Skills BooksLife Skills
Marketing BooksMarketing
Mathematics BooksMathematics
Revision, York Notes & Study Skills BooksRevision, York Notes & Study Skills
Psychology BooksPsychology
Science BooksScience
Social Science BooksSocial Science
Hibernate

Hibernate

A J2EE™ Developer's Guide

Will Iverson

Dec 2004, Paperback, 384 pages 
ISBN13: 9780321268198
ISBN10: 0321268199
This title is ordered on demand which may result in extended delivery times.
Special online offer - Save 30%
Was £28.99, Now £20.29 Buy Hibernate

Description  Back Cover  Contents  Features  Author  

Description

Hibernate is a popular open source object/relational persistence and querysystem and an alternative to Enterprise Java Beans. Compared to EJB,Hibernate is less complex, more easily portable and more powerful for linkingJava with traditional relational databases. Hibernate supports many relationaldatabases including: DB2, Informix, MySQL, Oracle, SAP DB, SQL Server,Sybase, and is downloaded over 23,000 times a month on average in 2004. Thisbook provides J2EE developers with a pratical hands-on guide to working withHibernate and their existing databases. Through numerous code examples andcase studies, the author helps reinforce what Hibernate is and how to use it.

top

Back Cover

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.

top

Contents

1. Overview.

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 Distribution.

Hibernate Extensions Distribution.

Configuration.

Supported Databases.

Introduction to MySQL.

2. Getting Oriented.

Application Architecture.

Mapping Files.

Mapping Files in Depth.

Generating Java Source.

Generated Persistent Classes.

Application Configuration.

Generated Database Schema.

Web Application.

JSP Interface.

List Posts.

Create Author.

List Authors.

Edit Author.

Create Post.

View Post.

Edit Post.

Delete Post.

Delete Author.

Next Steps.

3. Starting from Java.

Java Object Model.

Java Classes.

Working with Xdoclet.

Generated Mapping Files.

Generated Schema.

Working with Artifacts and Owners.

4. Starting from an Existing Schema.

Initial Schema.

Using Middlegen.

Obtaining Middlegen.

Configuring Middlegen.

Running Middlegen.

Generated Mapping Files.

Generated Java.

Working with the Database.

5. Mapping Files.

Basic Structure.

Mapping File Reference.

any.

array.

bag.

cache.

class.

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.

key.

key-many-to-one.

key-property.

list.

many-to-any.

many-to-many.

many-to-one.

map.

meta.

meta-value.

nested-composite-element.

one-to-many.

one-to-one.

param.

parent.

primitive-array.

property.

query.

return.

set.

sql-query.

subclass.

synchronize.

timestamp.

version.

6. Persistent Objects.

Sessions.

Setting up the Configuration.

Obtaining the Session.

Creating Objects.

Finding Objects.

Refreshing Objects.

Deleting Objects.

Updating Objects.

Objects and Identity.

What Is Identity?

Identity within a Session.

Generating Identity (Primary Keys).

Built-In Hibernate Generators.

Composite Identity.

Unsaved Value.

Life-Cycle Methods.

7. Relationships.

Database Relationships.

Many-to-One.

One-to-Many.

Many-to-Many.

One-to-One.

Java Collection Relationships.

Java Class Relationships.

Subclasses.

Joined Subclasses.

Components.

Any-Based Relationships.

Bi-directional Relationships.

8. Queries.

HQL.

Using Hibern8 IDE.

HQL Reference.

Notation Reference.

Select.

Selected Properties List.

Aggregate.

Collection Properties.

From.

Join Types.

Where.

Logical Operations.

Boolean Operations.

Quantified Expression.

Parameter Binding.

Group By.

Having.

Order By.

Criteria Queries.

Method Chaining.

Easily Override Lazy Settings.

Native SQL Queries.

9. Transactions.

Introduction to Transactions.

Sessions, Transactions, and Flushing.

Optimistic and Pessimistic Locking.

Pessimistic Locks.

Optimistic Locks.

10. Performance.

Finding and Solving Problems.

IronTrack SQL.

Queries.

Lazy Objects.

Collections.

Inserts.

Connection Pooling.

Caching.

Understanding Caches.

Configuring a Cache.

Standard Caches.

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.

Hibernate 3.0.

EJB 3.0.

Here and Now.

Index.

top

Features

A hands-on practical guide to the now most popular object/relational mapping solution for Java.

° Over 333,000 downloads of Hibernate so far (avg 23,000 a month in 2004)

° Teaches pratical solutions with real-life case studies and provides guidance and best practices for developers

° Complete coverage on how to work with other open source tools such as Ant

top

Author

Hibernate: A J2EE Developer's GuideAbout the Author

Will Iverson has been working in the computer and information technology field professionally since 1990. His diverse background includes developing statistical applications to analyze data from the NASA space shuttle, product management for Apple Computer, and developer relations for Symantec VisualCafé. For nearly five years, Will ran an independent J2EE consulting company with a variety of clients, including Sun, BEA, and Canal+ Technologies. Will currently serves as the application development practice manager for SolutionsIQ. Will lives in Seattle, Washington.


<>© Copyright Pearson Education. All rights reserved.

top


Product Search



Copyright Pearson EducationLegal Notice Privacy Notice