- Series: Expert's Voice in Java Technology
- Paperback: 500 pages
- Publisher: Apress; 1st ed. edition (November 25, 2009)
- Language: English
- ISBN-10: 1430219564
- ISBN-13: 978-1430219569
- Product Dimensions: 7.5 x 1.2 x 9.2 inches
- Shipping Weight: 2.5 pounds (View shipping rates and policies)
- Average Customer Review: 24 customer reviews
- Amazon Best Sellers Rank: #1,244,260 in Books (See Top 100 in Books)
Enter your mobile number or email address below and we'll send you a link to download the free Kindle App. Then you can start reading Kindle books on your smartphone, tablet, or computer - no Kindle device required.
To get the free app, enter your mobile phone number.
Pro JPA 2: Mastering the Java™ Persistence API (Expert's Voice in Java Technology) 1st ed. Edition
Use the Amazon App to scan ISBNs and compare prices.
Customers who bought this item also bought
What other items do customers buy after viewing this item?
About the Author
Browse award-winning titles. See more
Top customer reviews
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).
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 a few months ago there was *NO CODE WHASOEVER* to download on the book website. And even now there is code only for the first 9 chapters, for a book that has 15 chapters! And of course the last chapters are the more advanced and interesting...
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 due to the outstanding overall quality...but I do want to shout at the book authors: "hey dudes, when you're back from vacations could you please be so kind to give us example code for the rest of the book??? You will make a lot of readers happy and will make sure your royalties have been rightly earned.."
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.
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.