Buy new:
-67% $26.55$26.55
Ships from: Amazon.com Sold by: Amazon.com
Save with Used - Good
$7.87$7.87
FREE delivery Tuesday, April 29
Ships from: onceuponatimebooks Sold by: onceuponatimebooks

Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Pro JPA 2: Mastering the Java™ Persistence API (Expert's Voice in Java Technology) 1st ed. Edition
Purchase options and add-ons
Pro JPA 2 introduces, explains, and demonstrates how to use the Java Persistence API (JPA). JPA provides Java developers with both the knowledge and insight needed to write Java applications that access relational databases through JPA.
Authors Mike Keith and Merrick Schincariol take a hands–on approach to teaching by giving examples to illustrate each concept of the API and showing how it is used in practice.
All of the examples use a common model from an overriding sample application, giving readers a context from which to start and helping them to understand the examples within an already familiar domain.After completing the book, you will have a full understanding and be able to successfully code applications using JPA. The book also serves as a reference guide during initial and later JPA application experiences.
- Hands-on examples for all the aspects of the JPA specification, based on the reference implementation of this specification
- A special section on migration to JPA
- Expert insight about various aspects of the API and when they are useful
- Portability hints to provide increased awareness of the potential for non–portable JPA code
- ISBN-101430219564
- ISBN-13978-1430219569
- Edition1st ed.
- Publication dateNovember 25, 2009
- LanguageEnglish
- Dimensions7.5 x 1.2 x 9.2 inches
- Print length526 pages
There is a newer edition of this item:
Frequently purchased items with fast delivery
Editorial Reviews
About the Author
Product details
- Publisher : Apress; 1st ed. edition (November 25, 2009)
- Language : English
- Paperback : 526 pages
- ISBN-10 : 1430219564
- ISBN-13 : 978-1430219569
- Item Weight : 1.65 pounds
- Dimensions : 7.5 x 1.2 x 9.2 inches
- Best Sellers Rank: #6,506,753 in Books (See Top 100 in Books)
- #2,442 in Java Programming
- #2,689 in Object-Oriented Design
- #2,756 in Software Design & Engineering
- Customer Reviews:
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on AmazonCustomers say
Customers find the book provides thorough coverage of JPA, with one review noting it does a good job explaining the theory. Moreover, the writing is well-structured, and customers enjoy reading it. However, the content receives mixed feedback, with one customer describing it as not an exhaustive treatise.
AI-generated from the text of customer reviews
Select to learn more
Customers find the book informative and thorough, providing a great overview of JPA and covering the topic in detail.
"...All in all, a good book if you're learning JPA. If a friend or co-worker wanted to learn JPA, I would definitely recommend this book...." Read more
"...This book is well written, well organized, and gives great detail on JPA 2.0...." Read more
"This book covers the topic very well. It is very thorough and informative. You will be a JPA expert after absorbing the contents of this book." Read more
"The original Pro JPA book is an excellent introduction and reference to the Java Persistence API, now the de-facto system for providing coupling..." Read more
Customers appreciate the pacing of the book, finding it well written, with one customer noting its clean layout and organized structure.
"...The examples, I feel, are clear and consistent. All in all, a good book if you're learning JPA...." Read more
"...This book is well written, well organized, and gives great detail on JPA 2.0...." Read more
"...Anyhow... I do like the examples , I do like the structure, I do like the style.. what I really, really did not like was that when I bough the book..." Read more
"...Much more information, laid out cleanly and does not assume EJBs for every example...." Read more
Customers find the book engaging and enjoyable to read.
"...It is a pleasure to read this book ang dive deep into the Java Persistence technology." Read more
"I did enjoy this book, it's complete, engaging , very readable...I didn't like the bias towards Oracle/TopLink but that is forgivable since it was..." Read more
"Excellent book..." Read more
"Good book..." Read more
Customers have mixed opinions about the content of the book, with one customer noting that it relies heavily on snippets, while another points out that it is not an exhaustive treatise.
"...At some 450 pages it’s certainly not an exhaustive treatise, but covers everything most people need to know to get started and figure out the rest..." Read more
"...or even building an example as a chapter progresses, the book relies heavily on snippets...." Read more
"...This is a deadly, capital sin for any technical book, that makes me immediately throw it in the trash where it belongs.. This book is an exception..." Read more
Top reviews from the United States
There was a problem filtering reviews. Please reload the page.
- Reviewed in the United States on September 17, 2012I have not read this book cover-to-cover (as I just got it yesterday), but I deseparately needed a JPA 2 resource to fill in some knowledge gaps, particularly with merge/detach and QueryBuilder, for which I could not find a really good source of information on the internet.
The authors have done a great job covering some of the nitty-gritty nuances for things that are not so obvious. For example, during a merge, if the entity was not already managed, a new copy is created. I had no idea and was fighting with subtle bugs in my code as a result of this. I guess I could have gotten this from the actual javax.persistence interface contract, but it wasn't obvious to me (particularly because the javax.persistence JavaDocs are pretty bad), and I'm guessing it won't be completely obvious to others.
I'm still fighting with QueryBuilder/CriteriaQuery, particularly with having to create a metamodel. It is just beyond annoying that I have to run a separate tool to create source code for stuff that obviously the JPA implementation can figure out on its own. But I do understand that there is no way Eclipse can do type-safe code without something to back it up. Just makes me wonder when JPA 2.1 is going to come out and whether or not this issue is going to have some simpler resolution.
Sorry, I guess I got a bit off-topic there; this book is absolutely fantastic for someone that knows the basics of JPA and is trying to do a full production-ready implementation. I even learned some stuff about EJB 3 (not that I use it; I use Spring).
- Reviewed in the United States on December 27, 2009What I liked about the book. It covers the topic in a fair degree of detail and is well written. If you're trying to learn JPA I would recommend a book that covers the topic in depth rather than a few chapter in a book on J2EE in general or EJB's. If this is your first exposure to JPA, you should be able to read the first few chapters and come back to the advanced material as necessary. The examples, I feel, are clear and consistent. All in all, a good book if you're learning JPA. If a friend or co-worker wanted to learn JPA, I would definitely recommend this book.
What I did not like is a fairly minor issue. I wish the author had done a better job of highlighting what was new in JPA 2.0. There are applications and developers using JPA 1.0 and it would be nice to highlight some of the differences. If you're working in a JPA 1.0 environment, just be aware that some things covered in the book will not apply. However, since JPA 2.0 is largely evolutionary - 90% of what's in this book applies. In fact, I was able to move through much of the book fairly quickly because JPA 1.0 and 2.0 are very similar.
- Reviewed in the United States on November 8, 2011I bought this book because I was frustrated with the limited JPA coverage in my three EJB 3.x books. This book is well written, well organized, and gives great detail on JPA 2.0. I recommend this book for beginners and advanced readers - whether you're using EJB or not. Thanks to the authors and Apress.
- Reviewed in the United States on December 28, 2009I want to thank the Authors of this book for their great work. I strongly recommend this book to all the developers who want to embrace Java Persistence. It is a pleasure to read this book ang dive deep into the Java Persistence technology.
- Reviewed in the United States on May 11, 2013This book covers the topic very well. It is very thorough and informative. You will be a JPA expert after absorbing the contents of this book.
- Reviewed in the United States on February 22, 2013The original Pro JPA book is an excellent introduction and reference to the Java Persistence API, now the de-facto system for providing coupling between Java applications and relational databases.
At some 450 pages it’s certainly not an exhaustive treatise, but covers everything most people need to know to get started and figure out the rest for themselves.
If you do need more depth, you’re most likely going to have to refer to implementation specific resources anyway, like Java Persistence with Hibernate (Manning) as there are implementation differences between the likes of Hibernate and Toplink (despite JPA being a standard), especially in the configuration of datasources.
Compared to the first release, this book adds several chapters on the new functionality introduced with JPA 2, as well as updating existing content.
Based on the updates to the existing content, you may not need to buy this new release if you already own the original and don't need the extended functionality available in JPA 2.
While valuable information, it is probably not enough to on its own warrant the cost of the book.
If you however do not own the original release, this one comes highly recommended for users of both JPA 1 and 2.
- Reviewed in the United States on January 8, 2013I thought that my JavaEE book gave me all the JPA knowledge I needed. I was wrong! A must have book for everyone using JPA.
- Reviewed in the United States on February 25, 2010After learning JPA in bits and snippets and using it on the popular Spring/JPA/Hibernate environment, I was looking for an in-depth JPA book where I could read the theory of JPA and then code and execute examples to cement the concepts in my brain.
Unfortunately I found that although this book does a pretty good job of explaining the theory, it has a couple of flaws:
- It is heavily flavored toward EJBs. If you are not using EJBs you will find yourself trying to translate the examples to what you would really do.
- Instead of full examples, or even building an example as a chapter progresses, the book relies heavily on snippets. It is up to you to take these snippets and make them work in an integrated whole. Because of my past experience this was not a big problem for me, but it could be daunting for somebody trying to learn JPA from scratch.
I recommend not using this book alone. Supplement it with a book more focused on the JPA stack that you will be using. If you plan on using the Spring/JPA/Hibernate stack I recommend that you first read (and code) the JDBC, Transactions and JPA chapters from the Spring Recipes book. If you do that, this book should successfully increase the depth of your knowledge without hitting too many stumbling blocks.
Top reviews from other countries
-
Marco Antonio Flores FloresReviewed in Mexico on August 20, 2022
5.0 out of 5 stars El detalle del modelo de datos funcional
Muy detallado, voy por jpa 2.2
- Jim ToughReviewed in Canada on December 16, 2012
5.0 out of 5 stars Great JPA 2 reference
I had already read the PDF version of this book about 2 years ago, but I wanted to have a copy at my desk. It is a great reference for those like me who don't use JPA all the time and need to refer back to the manual sometimes.
- Amazon KundeReviewed in Germany on May 5, 2017
5.0 out of 5 stars outstanding
This is the best Java book I have read so far (and I have read many). You find examples about each and every detail in JPA which are immediately understandable just as isolated examples, you can read an isolated chapter without missing anything and also you can read the book from the beginning to the end, the structure is always clear and concise.
-
hvdpReviewed in France on February 12, 2011
5.0 out of 5 stars Complet et progressif
Une référence complète sur l'API JPA 2. La présentation est progressive, ce qui permet de démarrer sans trop de connaissances dans le domaine. Les mécanismes les plus avancés sont ensuite décortiqués, ce qui permettra de faire des choix d'architecture en toute connaissance de cause. La présentation est équilibrée entre le monde J2SE et le monde J2EE.
Une référence indspensable.
- Ashish ParabReviewed in India on August 15, 2016
4.0 out of 5 stars Four Stars
Must have for every java developer