Beginning Hibernate

2nd Edition

By Jeff Linwood , Dave Minter

Beginning Hibernate Cover Image

Beginning Hibernate, Second Edition is ideal if you're experienced in Java with databases (the traditional, or "connected," approach), but new to open-source, lightweight Hibernate—the de facto object-relational mapping and database-oriented application development framework.

Full Description

  • ISBN13: 978-1-4302-2850-9
  • 400 Pages
  • User Level: Beginner to Intermediate
  • Publication Date: May 27, 2010
  • Available eBook Formats: PDF
  • Print Book Price: $44.99
  • eBook Price: $31.99
Buy eBook Buy Print Book Add to Wishlist

Related Titles

Full Description

Beginning Hibernate, Second Edition is ideal if you’re experienced in Java with databases (the traditional, or “connected,” approach), but new to open-source, lightweight Hibernate—the de facto object-relational mapping and database-oriented application development framework.

This book packs in information about the release of the Hibernate 3.5 persistence layer and provides a clear introduction to the current standard for object-relational persistence in Java. And since the book keeps its focus on Hibernate without wasting time on nonessential third-party tools, you’ll be able to immediately start building transaction-based engines and applications.

Experienced authors Dave Minter and Jeff Linwood provide more in-depth examples than any other book for Hibernate beginners. The authors also present material in a lively, example-based manner—not a dry, theoretical, hard-to-read fashion.

What you’ll learn

  • How to build enterprise Java-based transaction-type applications that access complex data with Hibernate, including Software as a Service (SaaS)
  • How to work with Hibernate 3.5
  • Where to integrate into the persistence lifecycle, including cloud application implications
  • How to map using annotations, Hibernate XML files, and more
  • How to search and query with the new version of Hibernate
  • When to integrate with Spring, Grails, and more

Who this book is for

This book is for Java developers who want to learn about Hibernate.

Table of Contents

Table of Contents

  1. An Introduction to Hibernate
  2. Integrating and Configuring Hibernate
  3. Building a Simple Application
  4. The Persistence Life Cycle
  5. An Overview of Mapping
  6. Mapping with Annotations
  7. Creating Mappings with Hibernate XML Files
  8. Using the Session
  9. Searches and Queries
  10. Advanced Queries Using Criteria
  11. Filtering the Results of Searches
  12. Case Study — Using Hibernate with an Existing Database
Source Code/Downloads

Downloads are available to accompany this book.

Your operating system can likely extract zipped downloads automatically, but you may require software such as WinZip for PC, or StuffIt on a Mac.

Errata

Please Login to submit errata.

On page 19:

In first paragraph after Listing 2-2:

It is not the dialect property that is used without the "hibernate." - prefix instead it is the show_sql property.

That's only a small issue ;-)
but it might confuse some readers.



On page 58:
in listing 3-22, it mentioned and imported a class called CategoryDAO from sample.dao package which is not exist in any pages of the book and even the source code.

On page 58:
Listing 3-22 has three compiler errors:
1 - line 6 "The import sample.dao.CategoryDAO cannot be resolved" - CategoryDAO does not exist in sample.dao
2 - line 14 "CategoryDAO cannot be resolved to a type" - CategoryDAO does not exist, and
3 - line 32 "AdException cannot be resolved to a type" - AdException does not exist.
This listing also contains logical errors in the fact that it is supposed to display information fetched from a database, yet it contains no logic that interacts with the database(no connection, no query, etc.).