Join Amazon Prime and ship Two-Day for free and Overnight for $3.99. Already a member? Sign in.

 

or
Sign in to turn on 1-Click ordering.
 
 
More Buying Choices
57 used & new from $16.10

Have one to sell? Sell yours here
 
   
Java Persistence with Hibernate
 
 
Tell the Publisher!
I’d like to read this book on Kindle

Don’t have a Kindle? Get yours here.
 
  
3.6 out of 5 stars See all reviews (62 customer reviews)

List Price: $59.99
Price: $37.79 & this item ships for FREE with Super Saver Shipping. Details
You Save: $22.20 (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
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.

38 new from $32.98 19 used from $16.10

Frequently Bought Together

Java Persistence with Hibernate + Spring in Action + Struts 2 in Action
Price For All Three: $98.97

Show availability and shipping details

  • This item: Java Persistence with Hibernate by Christian Bauer

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • Spring in Action by Craig Walls

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • Struts 2 in Action by Don Brown

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details


Customers Who Bought This Item Also Bought

EJB 3 in Action

EJB 3 in Action

by Debu Panda
4.3 out of 5 stars (36)  $29.69
Effective Java (2nd Edition) (Java Series)

Effective Java (2nd Edition) (Java Series)

by Joshua Bloch
4.9 out of 5 stars (35)  $44.66
Java Concurrency in Practice

Java Concurrency in Practice

by Brian Goetz
4.8 out of 5 stars (59)  $37.79
Core JavaServer(TM) Faces (2nd Edition) (Sun Core Series)

Core JavaServer(TM) Faces (2nd Edition) (Sun Core Series)

by David Geary
3.9 out of 5 stars (37)  $37.79
Struts 2 in Action

Struts 2 in Action

by Don Brown
4.8 out of 5 stars (9)  $29.69
Explore similar items

Editorial Reviews

Product Description
Java Persistence with Hibernate is considerably more than simply a second edition to Hibernate in Action. It provides a comprehensive overview of all the capabilities of the Java Persistence API in addition to those of Hibernate 3, as well as a detailed comparative analysis of the two. It describes how Hibernate has been used to implement the Java Persistence standard, and how to leverage the Hibernate extensions to Java Persistence.

-- From the Forward by LINDA DEMICHIEL Specification Lead, Enterprise JavaBeans 3.0 and Java Persistence Sun Microsystems

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 so it's a snap to work with SQL databases in Java applications. Hibernate conforms to the new EJB 3.0 and Java Persistence 1.0 standards.

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 2nd edition of Manning's 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 1.0 standards.

What's Inside:

--Authoritative source for any developer using Java with SQL databases.
--Covers the latest major Hibernate version in great detail
--Explores the new EJB 3.0 Java Persistence standard.
--Written by the Hibernate founder and project lead.
--Object/relational mapping concepts
--Real-world tasks and examples
--Application design and development processes with ORM

From the Publisher
Java Persistence with Hibernate is divided into three major parts.

In Part 1, the book introduces the object/relational paradigm mismatch and explains the fundamentals behind object/relational mapping. Then, readers are walked through a hands-on tutorial to get you started with your first Hibernate, Java Persistence, or EJB 3.0 project. You look at Java application design for domain models and at the options for creating object/relational mapping metadata.

Mapping Java classes and properties to SQL tables and columns is the focus of Part 2. You explore all basic and advanced mapping options in Hibernate and Java Persistence, with XML mapping files and Java annotations. It shows you how to deal with inheritance, collections, and complex class associations. Finally, the book discusses integration with legacy database schemas and some mapping strategies that are especially tricky.

Part 3 is all about the processing of objects and how you can load and store data with Hibernate and Java Persistence. The book introduces the programming interfaces, how to write transactional and conversation-aware applications, and how to write queries. It later focuses on the correct design and implementation of layered Java applications, and the most common design patterns that are used with Hibernate, such as the Data Access Object (DAO) and EJB Command patterns. You'll see how you can test your Hibernate application easily and what other best practices are relevant if you work an object/relational mapping software.

Finally, you are introduced to the JBoss Seam framework, which takes many Hibernate concepts to the next level and enables you to create conversational web applications with ease.

Visit the Manning site for sample chapters, the Author Online Forum, errata and source code for Java Persistence with Hibernate.

See all Editorial Reviews


Product Details

  • Paperback: 904 pages
  • Publisher: Manning Publications; Revised edition (November 24, 2006)
  • Language: English
  • ISBN-10: 1932394885
  • ISBN-13: 978-1932394887
  • Product Dimensions: 9.2 x 7.4 x 2 inches
  • Shipping Weight: 3.2 pounds (View shipping rates and policies)
  • Average Customer Review: 3.6 out of 5 stars See all reviews (62 customer reviews)
  • Amazon.com Sales Rank: #42,592 in Books (See Bestsellers in Books)

    Popular in these categories: (What's this?)

    #2 in  Books > Computers & Internet > Databases > Java & Databases
    #77 in  Books > Computers & Internet > Databases > SQL
    #78 in  Books > Computers & Internet > Programming > Java

Inside This Book (learn more)


Books on Related Topics (learn more)
 
 


Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
Check the boxes next to the tags you consider relevant or enter your own tags in the field below.
(19)
(14)
(11)
(1)
(1)

Your tags: Add your first tag
 
Help others find this product — tag it for Amazon search
No one has tagged this product for Amazon search yet. Why not be the first to suggest a search for which it should appear?

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

62 Reviews
5 star:
 (26)
4 star:
 (12)
3 star:
 (8)
2 star:
 (8)
1 star:
 (8)
 
 
 
 
 
Average Customer Review
3.6 out of 5 stars (62 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

 
56 of 58 people found the following review helpful:
4.0 out of 5 stars A heavy-weight guide to the light-weight object persistence framework., December 21, 2006
Hibernate is an ambitious project that aims to be a complete solution to the problem of managing persistent data in java. With the most recent version (3.2) out in the wild now, it is better than ever. A whole slew of new features have been added, a bunch of them improved from its earlier incarnation, but to trump it all - hibernate now supports the new EJB 3.0 standard for persistence, named JPA. As a matter of fact, Gavin King, creator of hibernate, was one among the expert group members for that JSR and helped shape its API.

This book aims to be a definitive source of reference for both hibernate and its JPA implementation. The authors undertake an arduous task of explaining each and every detail both in hibernate and JPA parlance. The end result is a comprehensive tutorial/reference guide of both worlds in one well-written and easy-to-read book. Think about this, if your goal is to to learn only hibernate, you have it here, or if all you need is to learn the JPA specification, you got that here too. The most beneficial of all, if you wanted to learn both, compare and contrast them, and make an informed decision of the best approach for your next project, then you are still in the right place. Can this get any better? Keep reading.

With a whopping 850+ pages, this book has loads of information for a reader at any experience level. The entire subject area is broadly organized into 3 parts.

Part 1: Getting started with Hibernate and JPA
Part 2: Mapping concepts and strategies
Part 3: Conversational object processing

Part 1 introduces you to the object/relational paradigm mismatch - both structural and conceptual aspects. Then, we are taken through a tour of how to start a new hibernate project. The authors then lay-out the types of projects that will benefit from ORM and those that wont. Based on the conclusion that the projects with rich domain model will best benefit from ORM, we are then briefly introduced to the art of creating rich domain models using an example application (Caveat Emptor). This example application will be used throughout the rest of the book to explain various concepts and strategies.

Part 2 is largely about the most important concept of hibernate - mapping classes to tables. Starting with the simplest scenario, the authors discuss every possible use-case that may present itself in a data-driven application and provide a mapping solution for the same. One-to-One, One-to-Many, Many-to-One, Many-to-Many, Inheritance mapping, component mapping, mapping collections of components and many more are discussed in detail, along with recommendations on which one to use when. The authors also discuss the pitfalls when taking a bottom-up approach and its solutions. Every chapter explains the mapping meta-data in all 3 formats - hibernate XML, JPA XML and JPA annotations. Since JPA has some limitations, every possible limitation is pointed out and ways to get back to native hibernate to achieve the same effect is discussed.

Part 3 is a complete tutorial on the API for storing and retrieving objects. The authors start with the basics of how to persist, retrieve, query etc., and proceed by dedicating entire chapters for every advanced concept. Transactions & Concurrency, Implementing Conversations, Modifying objects efficiently, Retrieving objects using query and criteria api all receive their own chapters. Every chapter explains the API in both native hibernate as well as JPA parlance. Whenever a JPA limitation is encountered, the authors show the best fall-back strategy to native hibernate.

Towards the end, the authors briefly show us the art and science of writing layered applications with hibernate. As an added bonus, we also get a primer into JBoss Seam, which solves many problems related to writing layered applications using the now famous EJB 3.0 specification. Two appendices, one explaining the fundamentals of SQL and the other acting as a reference for mapping concepts are also very useful.

The authors are very ambitious in trying to cover all the features of both Hibernate 3.x and JPA specification. This is an arduous task and kudos for just aiming for that level of comprehensiveness. Praises aside, i am not very impressed with the ad-hoc approach taken to explain both these giants side-by-side. Some chapters clearly separate hibernate and JPA sections, whereas some chapters entangle them into a mess. I personally preferred the chapters that clearly separated these sections. That gives me the choice, as a reader, to select one or the other, and to focus on my choice. But for some reason, most chapters chose to discuss them in an entangled fashion leaving me more confused than i was before the start.

I was expecting at least a primer on Hibernate/Lucene integration, but the authors chose to safely eliminate the topic, probably because the feature is still in its infancy. Also, it was strange that there was no trace of spring framework anywhere in the book, knowing for a fact that spring has a lot to offer to any ORM implementation.

Though there is room for improvement, there is currently no match for this book in terms of the coverage offered. Explanations are lucid, examples are excellent, and the author's ability to foresee the next questions in the reader's mind and address them immediately is fabulous .

I highly recommend this book
- For those who are interested in learning hibernate 3.x and JPA specification
- For those who crave practical advices for real-world scenarios
- For those who wish to choose between native hibernate and JPA, based on facts, not just techno-babble

In case you are wondering what i chose, i chose native hibernate.
Comment Comments (3) | Permalink | Was this review helpful to you? Yes No (Report this)



 
12 of 12 people found the following review helpful:
4.0 out of 5 stars Deep as a Bible, Heavy as a Bible, Boring as a Bible, February 26, 2008
By Riccardo Audano (Chiavari, Italy) - See all my reviews
(REAL NAME)   
Technically speaking you cannot get much better than this. Java Persistence with Hibernate is accurate, complete, detailed, and full of practical examples. I know this expression is overused but this is really the definite reference, the Bible of Hibernate. Basically any rasonable question you might have about how to use this wonderful persistence tool is in this book.
My only gripe is that while this book makes a great reference or a great aid to the experienced developer to bring his hibernate skills to the best level, it fails miserably when used to learn Hibernate from scratch. It's a pity because with a little more effort this could have been the perfect Hibernate book. In particular, 90 % of the example code is from the 'Caveat Emptor' hibernate reference application. Perfectly nice to the veteran developer, but a beginner needs to see the code in action immediately, and building and analyzing 'Caveat Emptor' or translate the original code into his own 'experiments' will probably be way out of his reach. Finally, the writing style is lofty, self-conceited and abysmally boring, and fails to point out what is important from the (almost always) irrelevant details. This being said, Hibernate Foundations are all in this book, which makes a real treasure trove for a senior developer who has already fought a few battles with Hibernate. A good Hibernate intro book has still to be written, so my only advice to the newbie is try some online tutorials, maybe browse the hibernate official website, find something more 'human-friendly' and 'New-Testament-like' , get to play with Hibernate a little, to the point where you can write a very simple, even rudimentary application, and then you will be ready to start wrestling with this bible.
Comment Comment (1) | Permalink | Was this review helpful to you? Yes No (Report this)



 
12 of 12 people found the following review helpful:
4.0 out of 5 stars Supplement with Pro EJB 3, December 21, 2006
By C. Updike (United States) - See all my reviews
(REAL NAME)   
Are you considering using hibernate via JPA? Then it's a must read. However, I concur with Ganeshji. The book is ambitious, and the mixing of JPA with "plain ole" hibernate got confusing at times. I also have a copy of Pro EJB 3, and although I didn't expect to get much out of it, it is much more concise since it sticks to the JPA spec. So I tend to reference it first to get the basics from a pure JPA perspective, and then use Java Persistence with Hibernate to "reach behind" JPA into hibernate's extensions, and to help understand the book better.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)


Share your thoughts with other customers: Create your own review
 
 
Ad
 
Most Recent Customer Reviews

5.0 out of 5 stars a MUST_READ book for any web programmer
This book is not only a fantastic guide to Hibernate - it is actually an amazing treatise on two very important concepts: ORM and Domain-Driven Models. Read more
Published 1 month ago by Mahesh Lavannis

4.0 out of 5 stars A good book on Hibernate
While it could be shorter and more exciting, this book is certainly the only good book on Hibernate I came across. Read more
Published 3 months ago by C. Hivert

5.0 out of 5 stars Gets you up to speed on hibernate quickly
This book was a well written and easy to follow. It gets you up to speed on this great technology quickly
Published 4 months ago by R. Kroll

4.0 out of 5 stars Hibernate Bible
If you can only buy 1 book on Hibernate, this is the one to buy. It's comprehensive and well written. Read more
Published 5 months ago by Mike

5.0 out of 5 stars Simply great!
I've read other books on hibernate but this one gives the real taste.
The author put in even small details and given users choice what to chose and how to chose... Read more
Published 5 months ago by Ritesh Biltheria

5.0 out of 5 stars Buy it!
A must-have book for any Java developers who wants a advanced level in object-to-relational mapping. Very good.
Published 7 months ago by Arthur F. Garcia

1.0 out of 5 stars Going into Hibernation with ORM?
If you have seen the light of ORM and want a good technical read on this subject, this book is not for you. JPA here, Hibernate there, JPA here, Hibernate there. Read more
Published 8 months ago by Jorge Ramirez

1.0 out of 5 stars JPA with Hibernate or Hibernate with JPA?
This book is obviously a pitch for two of the main technologies in the JBoss Java EE stack: Hibernate and Seam. I was expecting heavier and more in-depth coverage of JPA 1. Read more
Published 8 months ago by Vivek Singh

4.0 out of 5 stars Very helpful
This book is not a cookbook, but it does provide a deeper-than-usual perspective on the concepts guiding Hibernate and ORM in general. Read more
Published 8 months ago by Mark

1.0 out of 5 stars decent material but poorly written
First off, if you want a great example of a very well written technical book on Java EE, check out Seam in Action. Allen covers ORM as well. Read more
Published 8 months ago by Alice Cho

Only search this product's reviews



Customer Discussions

 Beta (What's this?)
New! See all customer communities, and bookmark your communities to keep track of them.
This product's forum (1 discussion)
  Discussion Replies Latest Post
Which version of Hibernate does this book cover? 1 June 2008
See all discussions...  
Start a new discussion
Topic:
First post:
Prompts for sign-in
  [Cancel]


Active discussions in related forums
  Discussion Replies Latest Post
Philosophy of programming 0 1 hour ago
C# or Java? 35 20 hours ago
Jobs for Self Taught Programmers? 41 1 day ago
   


Product Information from the Amapedia Community

Beta (What's this?)

Listmania!

Create a Listmania! list


Look for Similar Items by Category


$15 Off Olay, Pantene, and More

$15 Off Olay, Pantene, and More
This July, enjoy an extra $15 off select skin and hair care from favorite brands such as Olay, Pantene, Secret, and Ivory.

Shop this offer now

 

Big Savings in Books

Bargain Books
Find great titles at fantastic prices in our Bargain Books Store.
 

Buy Three Books, Get a Fourth Free

4-for-3 Books
Order any four eligible books under $10 and get the lowest-price book free in our 4-for-3 Books Store. See more details.
 

Best Books

Best of the Month
See our editors' picks and more of the best new books on our Best of the Month page.
 
Ad

 

Feedback

If you need help or have a question for Customer Service, contact us.
 Would you like to update product info or give feedback on images?
Is there any other feedback you would like to provide?

Your comments can help make our site better for everyone.


Where's My Stuff?

Shipping & Returns

Need Help?

Your Recent History

  (What's this?)
You have no recently viewed items or searches.

After viewing product detail pages or search results, look here to find an easy way to navigate back to pages you are interested in.

Look to the right column to find helpful suggestions for your shopping session.

Continue shopping: Top Sellers
Free
Free by Chris Anderson
Paranoia
Paranoia by Joseph Finder
The Adventures of Sherlock Holmes
The Adventures of Sherlock Holmes by Arthur Conan, Sir, 1859-1930 Doyle
Glenn Beck's Common Sense

Conditions of Use | Privacy Notice © 1996-2009, Amazon.com, Inc. or its affiliates