Vous voulez voir cette page en français ? Cliquez ici.

Sign in to turn on 1-Click ordering.
More Buying Choices
Have one to sell? Sell yours here
Tell the Publisher!
I'd like to read this book on Kindle

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Professional Hibernate [Paperback]

Eric Pugh , Joseph D. Gradecki

List Price: CDN$ 47.99
Price: CDN$ 30.23 & FREE Shipping. Details
You Save: CDN$ 17.76 (37%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
Usually ships within 2 to 4 weeks.
Ships from and sold by Amazon.ca. Gift-wrap available.
Join Amazon Student in Canada

Book Description

Oct. 8 2004 Programmer to Programmer
What is this book about?

This book is written for professional Java developers who already understand how to build server-side Java applications.  The book assumes no previous experience with Hibernate, though readers should have a general familiarity with databases and Web development.

What does this book cover?

After a quick overview of Hibernate in the first two chapters, the authors jump right to the code.  They show how to do the following:

  • Obtain and install Hibernate
  • Build the Hibernate development environment
  • Use Hibernate to connect to databases
  • Use Hibernate to create persistent classes and objects
  • Use the Hibernate database query language and transaction management functions
  • Use the Hibernate APIs

After covering these essentials, the authors go further, showing readers how to use Hibernate in the real world.  This means demonstrating how to use Hibernate with other popular tools that readers are using (including Eclipse, Tomcat, Maven, Struts, and XDoclet). This book takes a very real-world, hands-on approach to these topics and includes many working code examples, as well as a sophisticated sample application.

Product Details

Product Description

From the Back Cover

Hibernate is an object/relational mapping (ORM) tool that also provides data querying and retrieval functions in a Java environment. Whether you are using simple objects or collections, Hibernate reduces your development time by handling most of the common data persistence tasks. This code-intensive text will take you through Hibernate’s major components and show you exactly how to use it to enhance your current development practices and toolsets.

You will learn how to install Hibernate, build the development environment, and configure Hibernate for a variety of databases, including DB2®, HypersonicSQL, MySQL®, Oracle®, and PostgreSQL. Then you’ll learn the details of connecting to databases using Hibernate, creating persistent classes and objects, working with SQL and HQL (the Hibernate Query Language), and managing transactions. Finally, you will take that basic knowledge into your real-world applications, learning to use Hibernate with other tools such as Eclipse, Tomcat, Maven, Struts, and Xdoclet.

What you will learn from this book

  • How Hibernate maps objects to a relational database
  • How to build a development environment for using Hibernate in a standalone context or in coordination with Tomcat
  • Methods of creating persistent objects
  • Query techniques using both traditional SQL and Hibernate Query Language
  • The DAO design pattern and how to use DAO with Hibernate
  • The application of Hibernate within a Maven project management system
  • How to incorporate Aspect J and Hibernate for complete control
  • How to use advanced caching techniques to improve Hibernate’s performance
  • How to use XDoclet with Hibernate to reduce your development time
  • The procedure for using Velocity and Struts with Hibernate

Who this book is for

This book is for professional Java developers who already know how to build sophisticated applications and have at least a general familiarity with databases, Java application development, and Web development. No prior experience with Hibernate is required.

Wrox Professional guides are planned and written by working programmers to meet the real-world needs of programmers, developers, and IT professionals. Focused and relevant, they address the issues technology professionals face every day. They provide examples, practical solutions, and expert education in new technologies, all designed to help programmers do a better job.

About the Author

Eric Pugh is a member of the Maven development team and an experienced Java enterprise developer specializing in database application design and development, and open source tool integration. He has contributed Hibernate-related code to many projects, including XDoclet and OSWorkflow, and is currently leading development of the Hibernate plugin for Maven. Eric has built several Hibernate applications for clients (including a Web-based lab automation application) and regularly uses Hibernate with Eclipse and Maven. In addition to writing documentation and specifications, Eric has written for OnJava.

Joseph D. Gradecki is a software engineer at Comprehensive Software Solutions, where he works on their SABIL product, an enterprise-level securities processing system. He has built numerous dynamic, enterprise application using Java, Hibernate, MySQL, XML, AspectJ, servlets, JSPs, Resin, BroadVision, and other technologies. He is the author of Mastering JXTA and the co-author of MySQL and Java Developers Guide and Professional Java Tools for Extreme Programming. Joe holds Bachelors and Masters degrees in Computer Science and is currently pursuing a Ph.D.

Inside This Book (Learn More)
First Sentence
In the computer industry, we commonly have discussions, disagreements, and even shouting matches over which of the latest languages are the best and where they should be used. Read the first page
Explore More
Browse Sample Pages
Front Cover | Copyright | Table of Contents | Excerpt | Index | Back Cover
Search inside this book:

Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

Customer Reviews

There are no customer reviews yet on Amazon.ca
5 star
4 star
3 star
2 star
1 star
Most Helpful Customer Reviews on Amazon.com (beta)
Amazon.com: 1.6 out of 5 stars  20 reviews
34 of 34 people found the following review helpful
1.0 out of 5 stars Unprofessional Hibernate Jan. 28 2005
By Daniel Kirkdorffer - Published on Amazon.com
I'd actually give this book 0 stars if I could.

I have never purchased such a bad technical book in 16 years of spending my money on these things. This book is full of coding errors, explanation errors, and typographical errors. The authors fail to point out very important information needed to get their examples working. The downloadable examples are organized in folders for the wrong chapters. The examples don't work when applied to configurations described in the text. The litany of problems goes on and on.

The fact the book mentions no technical reviewers should have tipped me off.

The supporting Web page at Wrox has no errata entries, even though the book has hundreds of mistakes. The forum on the book is dead. If you want to post errata you have to register, and then when you do it rejects your login. Perhaps that accounts for no errata.

I'd say the authors have no interest in maintaining such a list themselves, or else have moved on to other hobbies. As a Java developer I'd strongly recommend anyone contemplating this book moves on and buys another book instead. I'd recommend the book by Will Iverson ("Hibernate : A J2EE Developer's Guide") or "Hibernate in Action" by Christian Bauer, Gavin King instead.

The only positive thing I could say for the book is that it will force you do a lot of hunting down of answers to help you get through all the problems that working through their examples will give you. Having to fix a problem is often the best way to understand the details of a tool, API, or issue. But as a way of learning a technology I'd not recommend it. Most developers have enough of such frustrations in their day to day job to deal with already.
17 of 17 people found the following review helpful
1.0 out of 5 stars Terrible ! Do the authors know JAVA ? Dec 13 2004
By Sathyanarayanan Sekar - Published on Amazon.com
I fully agree with the other reviewers. Unfortunately, I bought the book before I checked the comments out here.

This is a book which does appear to be good - lots of code examples and all that. But it all comes to naught when the code is fraught with errors. And such terrible errors that I wonder whether the authors know Java at all.

Here is a code snippet they have used to illustarte binary data being saved in Hibernate:

public class Someclass {


Blob blob;


public void setBlob(bytes[] b) {

this.blob = b;




Now I ask you - is this code ever going to compile ? If binary data setting was so easy, we wouldnt have so many web-sites dealing with how to save Blobs into the database.

There are typos and code errors galore. My advice - stay away from this book !

I hear "Hibernate in Action" is much better and it has been well reviewed by folks at theserverside.com. So I should think that that should be a better option.
12 of 12 people found the following review helpful
1.0 out of 5 stars Mistakes galore and nothing to offer over the docs Nov. 27 2004
By Andles - Published on Amazon.com
There are way too many mistakes in this book - technical and grammatical. When reading this book I was learning nothing more than what I had learned the day before, using the hibernate docs. Tell a lie, I did learn a little about Aspectj, Maven and a whole bunch of other things I had no interest in - about a third of this already skinny book had barely anything to do with Hibernate.

Ask yourself this before buying this book - do you trust the authors, java programmers, that believe a String object is a primitive? That think 'void'declared methods will return an Object? That think you use the syntax 'O' to pass arguments and not (). That believe there is a collection class called 'list' and not List? That think that ......... well, you get my point. Most of the code in this book would NOT compile and has clearly not been tested. Many of the msitakes are not one-off glitches, but are persisted throughout the book - it is really really anoyying!

Do what I did, print out the hibernate docs. Dont do the other thing I did, buy this book. My next try will be 'Hibernate In Action' - not sure yet if its any good.
12 of 12 people found the following review helpful
1.0 out of 5 stars Good thing my company paid for this... Jan. 28 2005
By Steve Torrefranca - Published on Amazon.com
Well plain and simple folks... those who gave more than 1 star were PAID to give this book a rate it didn't deserve.

How bad it is, you would ask. Well let us say reaching page 7 I had to go to Amazon to see what other people say about this book. For a moment I thought I had lost 100% of my programming IQ for drinking too much tea. I cannot continue a page more. That is how bad it is. I think the authors are .net programmers and were just asked to write a book on hibernate.

If you really really hate someone, recommend this book. But if you value your hard earned money, stay away from this one. Don't let the Editorial Reviews misguide you. I think the "editors" never actually read it.

Listen to us; we poor people who actually bought and read Professional Hibernate.
12 of 12 people found the following review helpful
1.0 out of 5 stars Laughably bad May 10 2005
By Patrick Carroll - Published on Amazon.com
Full of typos (they could at least have done a search-and-replace of "Hibemate"). Lots of filler (viz. the chapters on things like the DAO pattern).

Definitely not worth it.

The Manning book remains the standard for in-depth coverage, while the O'Reilly programmer's notebook does the trick for the quick-and-dirty introduction. Skip the rest.

Look for similar items by category