Deliver to your Kindle or other device


Try it free

Sample the beginning of this book for free

Deliver to your Kindle or other device

Sorry, this item is not available in
Image not available for
Image not available

Pro JPA 2: Mastering the Java™ Persistence API (Expert's Voice in Java Technology) [Kindle Edition]

Mike Keith , Merrick Schincariol
4.0 out of 5 stars  See all reviews (3 customer reviews)

Print List Price: £39.49
Kindle Price: £37.52 includes VAT* & free wireless delivery via Amazon Whispernet
You Save: £1.97 (5%)
* Unlike print books, digital books are subject to VAT.

Free Kindle Reading App Anybody can read Kindle books—even without a Kindle device—with the FREE Kindle app for smartphones, tablets and computers.

To get the free app, enter your e-mail address or mobile phone number.


Amazon Price New from Used from
Kindle Edition £32.25  
Kindle Edition, 4 Dec. 2009 £37.52  
Paperback £39.49  
Kindle Daily Deal
Kindle Daily Deal: Up to 70% off
Each day we unveil a new book deal at a specially discounted price--for that day only. Learn more about the Kindle Daily Deal or sign up for the Kindle Daily Deal Newsletter to receive free e-mail notifications about each day's deal.

Book Description

Pro JPA 2 introduces, explains, and demonstrates how to use the new 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 new 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

What you’ll learn

  • Get started with enterprise applications using JPA 2.
  • Get up to speed with Object–Relational Mapping and Entity Manager.
  • Learn and use queries and the query language (JP QL).
  • Employ advanced Object–Relational Mapping techniques.
  • Use XML mapping files and learn other advanced techniques.
  • Package and deploy your Java persistence applications.
  • Test your Java persistence applications.
  • Migrate your Java persistence applications.

Who is this book for?

The book generally targets enterprise and persistence developers who fall in one of three categories:

  • Those who are new to persistence; we will present some background information and introduce these readers to the basic persistence concepts to bring them up to speed.
  • Those who know and/or use existing ORM persistence products such as Hibernate or TopLink.
  • Those who have already used JPA and want to learn about the new features that JPA 2 introduces, or have a good reference book to turn to when they develop JPA applications.

In general, we assume that the reader is knowledgeable with Java, SQL, and JDBC, and has a little knowledge of J2EE

About the Apress Pro Series

The Apress Pro series books are practical, professional tutorials to keep you on and moving up the professional ladder.

You have gotten the job, now you need to hone your skills in these tough competitive times. The Apress Pro series expands your skills and expertise in exactly the areas you need. Master the content of a Pro book, and you will always be able to get the job done in a professional development project. Written by experts in their field, Pro series books from Apress give you the hard–won solutions to problems you will face in your professional programming career.

Customers Who Bought This Item Also Bought

Page of Start over
This shopping feature will continue to load items. In order to navigate out of this carousel please use your heading shortcut key to navigate to the next or previous heading.

Product Description

About the Author

Michael Keith is the cospecification lead of EJB 3.0 and also a member of the Java EE 5 expert group. He holds a master's of science in computing from Carleton University and has over 15 years of teaching, research, and practical experience in object persistence. He has implemented persistence systems for Fortune 100 corporations on a host of technologies, including relational and object databases, XML, directory services, and custom data formats. Since the fledgling EJB days, he has worked on EJB implementations and integrations of multiple application servers. He has written various papers and articles and spoken at numerous conferences about EJB 3.0. He is currently employed at Oracle as a persistence architect.

Product details

  • Format: Kindle Edition
  • File Size: 11557 KB
  • Print Length: 500 pages
  • Publisher: Apress; 2010 edition (4 Dec. 2009)
  • Sold by: Amazon Media EU S.à r.l.
  • Language: English
  • ASIN: B003U890O6
  • Text-to-Speech: Enabled
  • X-Ray:
  • Word Wise: Not Enabled
  • Average Customer Review: 4.0 out of 5 stars  See all reviews (3 customer reviews)
  • Amazon Bestsellers Rank: #692,905 Paid in Kindle Store (See Top 100 Paid in Kindle Store)
  •  Would you like to give feedback on images?

Customer Reviews

4 star
3 star
1 star
4.0 out of 5 stars
4.0 out of 5 stars
Most Helpful Customer Reviews
1 of 1 people found the following review helpful
5.0 out of 5 stars Must buy for Java EE developers! 13 May 2013
By Mircea
Format:Paperback|Verified Purchase
This book contains so many examples and explanations, that it can be considered a bible for Java EE engineers.
It teaches not just JPA, but also many other technologies related: CDI, Servlet and EJB.
It covers both usage in Servlet container and Java EE container, so don't worry.
Conclusion: must buy. You'll get 3 times smarter.
Comment | 
Was this review helpful to you?
2.0 out of 5 stars Dry and too academic. 2 Nov. 2013
By Hog
Too often the author has chosen to use academic language to describe simple concepts and situations where an example or diagram would have been more effective. The result is that you need to read most paragraphs over three or four times before going "ah, so that's what they're on about!" A frustrating read.
Comment | 
Was this review helpful to you?
1 of 2 people found the following review helpful
5.0 out of 5 stars Clearer than expected 20 Jun. 2013
By Igor
Format:Paperback|Verified Purchase
I love this book. Since the first page you can note that the author will teach you well. And he does! Examples are clear, well defined and include tons of details that will fit all the requirements of your project.

If you're going to use JPA in a project, you need this book.
Comment | 
Was this review helpful to you?
Most Helpful Customer Reviews on (beta) 4.2 out of 5 stars  23 reviews
23 of 24 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 28 Feb. 2010
By Jacek Laskowski - Published on
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.
11 of 11 people found the following review helpful
4.0 out of 5 stars Solid Book on JPA 27 Dec. 2009
By Paul Hoehne - Published on
Format:Paperback|Verified Purchase
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.
28 of 34 people found the following review helpful
2.0 out of 5 stars Too EJB-focused, good theory, incomplete examples 25 Feb. 2010
By Bruno Genovese - Published on
Format:Paperback|Verified Purchase
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.
2 of 2 people found the following review helpful
4.0 out of 5 stars Why the capital sin? 3 Aug. 2010
By Riccardo Audano - Published on
Format:Paperback|Verified Purchase
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 present only in the "history of JPA" and not in the techical part..but nonetheless.. dudes, I do realize you work for Oracle, but JPA is an Hibernate "official reincarnation"... trying to ignore this fact and writing like JPA just fell down from the sky or worse from ancient TopLink.. well that is just pathetic...
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.."
2 of 2 people found the following review helpful
5.0 out of 5 stars Comprehensive and well-written 15 Feb. 2010
By E. Mills - Published on
This is an incredibly well-written book. It provides material that builds upon itself in a gradual and understandable manner. The authors did a great job of not only presenting the material, but they also seemed to anticipate my questions. If you need to understand Java Persistence, regardless of the provider, this is the book to begin with. Not only does this book set a high standard for explaining Java Persistence, it is a model for technical writing in general.
Were these reviews helpful?   Let us know
Search Customer Reviews
Only search this product's reviews

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
First post:
Prompts for sign-in

Search Customer Discussions
Search all Amazon discussions

Look for similar items by category