Item description for Java Persistence with Hibernate by Christian Bauer & Gavin King...
Overview A guide to using Hibernate and Java Persistence covers such topics as ORM, application architecture, and developer tools.
Persistence-the ability of data to outlive an instance of a program-is central to modern applications. Hibernate, the most popular Java persistence tool, provides automatic and transparent object/relational mapping making it a snap to work with SQL databases in Java applications. Hibernate applications are cheaper, more portable, and more resilient to change. Because it conforms to the new EJB 3.0 and Java Persistence 1.0 standard, Hibernate allows the developer to seamlessly create efficient, scalable Java EE applications.
"Java Persistence with Hibernate" explores Hibernate by developing an application that ties together hundreds of individual examples. You'll immediately dig into the rich programming model of Hibernate 3.2 and Java Persistence, working through queries, fetching strategies, caching, transactions, conversations, and more. You'll also appreciate the well-illustrated discussion of best practices in database design, object/relational mapping, and optimization techniques.
In this revised edition of the bestselling "Hibernate in Action," authors Christian Bauer and Gavin King-the founder of the Hibernate project-cover Hibernate 3.2 in detail along with the EJB 3.0 and Java Persistence standard.
Promise Angels is dedicated to bringing you great books at great prices. Whether you read for entertainment, to learn, or for literacy - you will find what you want at promiseangels.com!
Est. Packaging Dimensions: Length: 2" Width: 7.25" Height: 9.25" Weight: 3.3 lbs.
Release Date Nov 24, 2006
Publisher Manning Publications
ISBN 1932394885 ISBN13 9781932394887
Availability 0 units.
More About Christian Bauer & Gavin King
Christian Bauer is a member of the Hibernate developer team. He works as a trainer, consultant, and product manager for Hibernate, EJB 3.0, and JBoss Team at JBoss, a division of Red Hat. He is the co-author with Gavin King of Manning's best-selling Hibernate in Action.
Reviews - What do customers think about Java Persistence with Hibernate?
Be prepared for some heavy reading Sep 9, 2008
Its long since I wrote a review and as I am reading this book, I felt an immediate need to write one. This book is definitely the bible for hibernate, no doubt about it. But the way its written... hibernate and jpa, annotations and xml and everything clubbed together really slows down the reader. I already read the authors defensive note. But the problem is that a reader wants to do one thing at a time and wants to quickly master it. Hopefully this will be rectified in the next version!
Stick with Hibernate in Action Aug 26, 2008
Hibernate in Action is a great book that I go back to again and again. It was very well written for a technical book.
Java Persistence with Hibernate is disappointing. The first half adds very little to what is available in Hibernate in Action and the second part is half-baked. The authors should have waited for the specs to gel and written a book purely on implementing JPA with Hibernate. They should have left out the first part of the book and pointed people to Hibernate in Action.
Bigger books are not necessarily better books.
Look elsewhere, there are better options... Aug 23, 2008
I have over 5 years of JavaEE development experience, mostly with Struts/EJB2 apps and more recently with JSF/Seam/EJB3 apps.
There is a lot of useful information in this book. This book covers a very interesting and complex topic (using Object/Relational Mapping in your persistence tier) but the book needs a lot of help. It is one of the most confusing Java books I've read and would only recommend you use it if your employer pays for it (i.e. don't buy it yourself!) Hopefully, ORM books like these will become obsolete when OODBMS takes a firm grip one day in corporate enterprise environments. But until then, we're stuck with solutions like JPA and Hibernate.
If you're writing a JSF/EJB3 application, you'll most likely use JPA 90% of the time and Hibernate for the remaining 10% that is not supported by the JPA spec (e.g. Criteria API, soon to be supported in JPA 2.0) Remember that if you ever need to port your application to another persistence provider and/or runtime environment, using the standard JPA interfaces only is an advantage over using JPA and Hibernate or TopLink API in your code.
So if you're working on a Seam application, for example, which uses JSF and EJB3, then you'll be more interested in learning about and using JPA. If you're working on a Spring/Hibernate application, then you'll be more interested in the Hibernate-specific information in this book.
Unfortunately, it's difficult to filter out the information you're interested in because the JPA and Hibernate examples are typically juxtaposed and this is extremely confusing, especially when you first begin to read this book. Often times, the authors go back and forth between Hibernate and Java Persistence in the same section, making it difficult to follow (see examples below).
For the following reasons, I am giving this book a poor review mark:
incoherent presentation of topics and explanations (e.g. section 8.2.2: integrating stored procs does not state if it's using JPA- or Hibernate-specific API or configuration in the beginning of the section and whether or not JPA even supports stored proc integration) another example of confusion: in section 2.2.1: Using Hibernate Annotations, the authors state "let's first use Hibernate Annotations to replace the Hibernate XML mapping files." Then in the code list 2.10 we see the following import statement: "import javax.persistence.*". Are these the same as Hibernate Annotations? Perhaps similar, but if you download Hibernate Annotations 3.4.0.GA, you'll see that the @Table and @Entity interfaces are both in the org.hibernate.annotations package, not javax.persistence package. Very confusing to the reader. sections 2.1 and 2.2 cover starting a Hibernate project and Java Persistence project, respectively. The coverage keeps switching back and forth from Hibernate and Java Persistence and it's very diffcult to read and follow. Generally speaking, the book is too long and too heavy. It should have been released in two volumes. Although well-written and consise, the Seam chapter is unnecessary and makes the book even longer.
cursory coverage of Hibernate 2nd level cache and whether or not the cache is available in JPA (added Cache interface in JPA 2.0) CaveatEmptor Seam application is not available book website
Pro EJB 3: Java Persistence API by Mike Keith (uses Toplink Essentials RI persistence provider examples instead of Hibernate) Enterprise JavaBeans 3.0 by Bill Burke (covers JPA) POJOs in Action by Chris Richardson (covers JPA and Hibernate) Hibernate in Action by Bauer and King JSR-000220 Enterprise JavaBeans 3.0 Final Release (persistence) Hibernate Forums online Hibernate Reference Documentation online JBoss Developer Support subscription
On a bright note, the index in this book is decent and helpful for reference purposes.
A boring book Aug 6, 2008
This is a boring book and hard to understand. If you want to learn Hibernate, don't buy it.
A Massive Book for a Magnificent Framework May 10, 2008
Some of the reviews for this book are a little harsh.
This is the most complete book on Hibernate on the market. It covers everything, and I mean everything. From mapping to annotations, to whatever, it's in here.
The book is written by the makers of Hibernate, and you can find an answer to pretty much every question you'll ever have explained in extreme detail, and in a very, very technical way.
The book uses the Caveat Emptor application as a reference. You keep going back to that example, which you can download from the hibernate site. It is a very complete and intricately developed application that is a reference for how to develop enterprise ready applications that could be deployed to pretty much any mission critical environment.
This book is amazing. Some reviewers have tried to use this as a Dummies book or How To book and have been frustrated, and have given this book poor reviews. That's not fair. Imagine trying to learn to swing a baseball (or cricket) bat by taking pitches from a major league pitcher. You wouldn't learn a thing, as every pitch zoomed by you at 100mph. This book is like the big league pitcher, helping you develop and design applications that are ready for the big leagues. When you understand that, you can understand why people who are new to the technology, and looking for very simple and straight forward examples, can get frustrated with this book and give it 1 or 2 stars. Really, those reviews are not fair.
If you are new to hibernate, you should start of with something a like Hibernate Made Easy: Simplified Data Persistence with Hibernate and JPA (Java Persistence API) Annotations. If you are using mapping files, then Hibernate: A Developer's Notebook is the other book you should get.
Overall, this is a five star book written by the people that know Hibernate the most. We're very luck to have a book like this to help guide us through the really, really, really tough stuff.