Get 1 Year of unlimited Apress for $199
Instant access to all available titles and new releases Apress Access Subscription

Beginning Hibernate

2nd Edition

By Jeff Linwood , Dave Minter

  • eBook Price: $31.99 $10.00
  • Print Book Price: $44.99
Buy eBook Buy Print Book
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

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

Related Titles

  • Introducing Gradle
  • Beginning Ubuntu for Windows and Mac Users
  • Oracle Certified Professional Java SE 8 Programmer Exam 1Z0-809
  • Pro Couchbase Server
  • Pro Android 5
  • Pro CSS3 Layout Techniques
  • Pro Marketing and Search Engine Optimization
  • Pivotal Certified Spring Web Application Developer Exam
  • SQL Server T-SQL Recipes
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.


If you think that you've found an error in this book, please let us know by emailing to . You will find any confirmed erratum below, so you can check if your concern has already been addressed.

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


    1. Pro JavaScript Techniques

      $27.99 $10.00

      View Book

    2. Introduction to React

      $17.99 $10.00

      View Book

    3. JavaScript Quick Syntax Reference

      $13.99 $10.00

      View Book

    4. Pro jQuery 2.0

      $41.99 $10.00

      View Book