Search
  Shop

ERP

SAP

Oracle

JD Edwards

PeopleSoft

Adobe

ASP

Cold Fusion

Java

Microsoft

SQL

 
 
 
 
 
 
 
 
 
 
Home

SQL

Java Persistence with Hibernate
Email a friendEmailView larger imageZoom

Java Persistence with Hibernate

SKU:  

Availability:   Usually ships in 1 business days
 

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.

 
List Price: $59.99
Our Price: $37.79 & this item ships for FREE with Super Saver Shipping.
You Save: $22.20 (37%)
 
 

Note: Item may be sold and shipped by another company. Learn more.


Product Promotions
  • This title is eligible for Amazon Fall Textbook promotions. Get unlimited free Two-Day Shipping for three months with a free trial of Amazon Prime. Add $100 worth of eligible textbooks to your cart to qualify. Sign up at checkout. New members only.  Here's how (restrictions apply)

Product Details
Author:Christian Bauer
Paperback:904 pages
Publisher:Manning Publications
Publication Date:November 24, 2006
ISBN:1932394885
Package Length:9.2 inches
Package Width:7.4 inches
Package Height:2.0 inches
Package Weight:3.15 pounds
Average Customer Rating: based on 49 reviews

Customer Reviews
Average Customer Review:4.0
Write an online review and share your thoughts with other customers.

1 of 1 found the following review helpful:

2Stick 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.

1Look 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


Better alternatives:

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.




1 of 1 found the following review helpful:

2A boring book  Aug 06, 2008
This is a boring book and hard to understand. If you want to learn Hibernate, don't buy it.

1 of 1 found the following review helpful:

5A 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.

5Best Resource  May 07, 2008
I have finally found a great resource on persistence. This book allows you find enough detail quickly to get going and enough in-depth knowledge and understanding to keep you coming back. A must own.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 About UsContact Us
ERPMVP.comBusinessMVP.comCareerMVP.comTechnologyMVP.com