Most Helpful Customer Reviews
14 of 14 people found the following review helpful:
5.0 out of 5 stars
By no stretch of the imagination could you believe the JPA 2.0 specification goes into detail better, February 27, 2010
This review is from: Pro JPA 2: Mastering the Java(TM) Persistence API (Expert's Voice in Java Technology) (Paperback)
With mixed feelings I'm writing the book review of "Pro JPA 2: Mastering the Java Persistence API" by Mike Keith and Merrick Schincariol (Apress, December 2009). On the one hand I'd highly recommend the book to anyone who is interested in the JPA 2.0 specification and doesn't anticipate reading more than a single book about JPA (to have a complete understanding of the subject), but on the other hand it is a book that takes ages to read and even more to digest. It was beginning to try my patience yet I couldn't stop reading it. The more I delved in the book the more 'Aha'-moments struck me.
I first thought I was well prepared for the book and I knew quite a lot about JPA 1.0 in theory and practice, but it took me just a few chapters to realize that I had just scratched the surface of the JPA specification and I'd still dare to call it an extensive JPA knowledge. I couldn't have been wrong more. I had no doubts that the JPA 2.0 was quite new to me with its Criteria API and dynamic, typesafe (or strongly typed) queries or embedded objects and their collection mappings or validation and constraints as well as the outside the server deployment, but still thought I was not going to be surprised so often even in the areas I felt strong.
With all these enhancements it's hard to expect a single book can give enough explanation to cover the intricacies of the JPA 2.0 specification, but I have no doubt the authors made every effort to write one. There are almost 500 pages divided among 15 chapters ranging from the unsurprisingly, introductory chapter 1. "Introduction" to the chapter 15. "Migration" with the chapter 9. "Criteria API" in between. If you think you could skip some parts of the book to learn more about JPA faster, you couldn't be more mistaken. However you look at it, the book is not an easy task to read it from a cover to cover, but I think there's no other way to get the most out of it and appreciate its value. You'll certainly miss these skipped chapters if you decide to skip some as the extensive JPA coverage grows gradually with samples all over the book. You skip one chapter and a whole raft of examples are gone. Something not to be missed if you wanna go pro.
The authors are very diligent in describing each and every detail of the JPA spec without having the broader view put aside. They carry a reader gently and with a great care through the JPA complexity to make the subject easy to follow and understand. They quickly present an overview of the previous versions of the EJB spec with its pre-JPA CMPs, the current persistence standards like JDBC and JDO and delve into the parts of the newest EJB 3.1 and Java EE 6 areas to guide you to the proper use of JPA in your projects. Every detail is taken care of with many examples and comments. New JPA 2.0 changes are very noticeable to the eye with TIP box-markers so you can very easily find these places for later study.
If only there are books like "Pro JPA 2: Mastering the Java Persistence API" published you'd never look elsewhere for additional coverage of the subject.
Help other customers find the most helpful reviews
Was this review helpful to you? Yes
No
14 of 16 people found the following review helpful:
2.0 out of 5 stars
Too EJB-focused, good theory, incomplete examples, February 25, 2010
This review is from: Pro JPA 2: Mastering the Java(TM) Persistence API (Expert's Voice in Java Technology) (Paperback)
After 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.
Help other customers find the most helpful reviews
Was this review helpful to you? Yes
No
7 of 7 people found the following review helpful:
4.0 out of 5 stars
Solid Book on JPA, December 27, 2009
This review is from: Pro JPA 2: Mastering the Java(TM) Persistence API (Expert's Voice in Java Technology) (Paperback)
What 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.
Help other customers find the most helpful reviews
Was this review helpful to you? Yes
No
|