This site will look much better in a browser that supports web standards, but it is accessible to any browser or Internet device.

The Open Source Zone


Hibernate in Action (In Action series)

Book cover

by Christian Bauer, Gavin King

ASIN: 193239415X

See more on Amazon.com

Average Customer Review: 4.5, based on 59 reviews.

Customer reviews (5 of 59)

Concise and well written., 2007-04-02, Rating: 5.

A great book for getting going with Hibernate quickly.
Some parts are heavy going because it is packed with info. This pays off because there is little or no padding/rubbish.

Try their newer book instead, 2006-11-29, Rating: 4.

This book is for Hibernate 2. Hibernate 3 is covered by the same authors in Java Persistence with Hibernate

Useful narrative , 2006-11-09, Rating: 5.

I found this book useful and readable, and it helped me develop my first (and second) Hibernate applications. It begins with a brief overview of the kinds of problems which ORM solutions need to address. It then introduces Hibernate along with a couple of examples, upon which subsequent chapters build. (Some reviewers have criticized the examples, but I thought they were useful, and I didn't have trouble following them) One thing you should be aware of: while this book is a good narrative, it's not as useful as a reference. I find myself paging back and forth among several chapters which cover topics in different levels of detail. That shouldn't be a show-stopper since reference material exists on the web. You might be concerned is the book covers Hibernate 2.1, while Hibernate 3.x and Ejb 3 are out; the book is still relevant and valid, and I've used it along side Hibernate 3 with no problem.

Falls short of expectation, 2006-10-29, Rating: 3.

With this book, we have the rare circumstance where the founder and principal developer of the technology has authored the material. Moreover, the back jacket promises that the text would build on a single example to show how to use Hibernate in practice.

Sorry, dear reader. This book falls far, far short of its promise. Yes, you can download a single cogent example. But the authors make only loose reference to that example, choosing instead to offer dozens and dozens of snippets, out of context with the example. A first-class book, such as Mastering WebLogic, not only provides a robust example, but also walks the reader entirely through the example, from design choice, through coding practices, and ultimately into implementation decisions. In stark contrast, this book offers nothing more than a progression through various topics, illustrated via pieces of java classes, leaving the reader to hunt for the relevance to the downloadable application.

The book does have its uses. As you dive into various real-world situations, this book should serve, after some digging, to reveal an optimal approach to solving the problem at hand. The topics are covered to a healthy depth. I suspect this is the best treatise available on abstruse topics such as caching, transaction handling, and mapping to legacy data stores.

Good background info, but the "ultimate Hibernate reference" is google, 2006-10-28, Rating: 3.

This is not a bad book. I'm glad I bought it and glad I read it. Its problem is that it doesn't live up to its hype. It is not "the ultimate Hibernate reference" by any stretch. In fact, it's not much of a reference at all, so if your expectations of it are too high, you may end up disappointed.

If you are serious about learning Hibernate and want to get as much depth and background on as many aspects of it as possible, this book is definitely worth reading. The text is well-written and clear, and the information is straight from the most qualified Hibernate committers.

On the downside, this book is missing most of the important administrative and troubleshoting information you will want when you are actually using Hibernate, the book isn't organized so you can easily find any particular detail, and Hibernate is moving on, so some of the information is dated.

Ultimately, if you want practical information or a good reference on Hibernate, I don't think the question you want to ask is "what book should I buy?" You want to ask "why should I buy a book at all when I get much better info for free from google search?"

When you are first getting started, the "getting started" example from the online doc distributed with Hibernate is comprehensive and useful. By contrast, the "Hello World" example in this book is superficial and missing information you need. For example, the very first thing when you work with Hibernate you'll have to include about a dozen .jar files into your project, and you have several choices among alternative jars that you won't care much about `till you become more advanced. Some help is online, little or none is in "Hibernate in Action."

I think Hibernate is all-in-all a great piece of software. Object-to-relational mapping is a hard problem to solve, Hibernate does a great job at the basics of it, and the world is a better place because the boys from jboss donated us their solution. When it works it's like good magic should be. But when it fails, it fails hard, horks all over itself, and spews out a bunch of mostly unhelpful junk. Hibernate suffers from having been developed by an insular group of developers who are too close to their problem, and who have lucrative day jobs as consultants they need to get back to. The result is not much in the way of troubleshooting help, and troubleshooting help is what you'll find you need most. Hint 1 - you won't find such help in "Hibernate in Action" so go to google and type in the text of the error message you get. Hint 2 - you will find a lot more people asking the same question than people answering it. Perservere and be a good detective and you will figure out what you need.

References are organized so you can easily find that one little detail of information you need right now. References have things like short sections with short clear titles that are language keywords or clearly intuitive concepts. References also have long, detailed indexes with a lot of repitition. "Hibernate in Action" has none of this, and it is devilishly hard to find details in it even though you know they are in there somewhere. My copy has about 25 little sticky note bookmarks to help me find things, but most often I don't bother and I just go straight to google.

Finally, Hibernate has evolved since this book was published. My favorite change is that it now includes support for Java 5 annotations as an alternative to XML or XDoclet configuration. Hibernate is notable, like Struts, in helping you get out of J2EE-EJB hell, and into XML configuration purgatory. Annotations rock in relieving you of the keeping-the-XML-in-sync-with-the-Java torture, and you need a reference that doesn't steer you towards doing it the old way. AFAIK, as of this writing, that's only available online.

See more reviews on Amazon.com...