Search
Go

Shop by category
 
Pro JPA 2: Mastering the Java™ Persistence API (Expert's Voice in Java Technology)
Email a friendView larger image

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

List Price: $49.99
Our Price: $28.56
You Save: $21.43 (43%)
Shipping: This item ships for FREE with Super Saver Shipping.
SKU:

NU-FQC-00508230

In Stock
Usually ships in 1 business days

Note: Item may be sold and shipped by another company. Learn more.
Product Promotions:
  • Buy $50 in qualifying physical textbooks, get $2 in Amazon MP3 Credit.  Here's how (restrictions apply)
Description:

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

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 this book is 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 newer features introduced by JPA 2, or have a good reference book to consult 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.

Table of Contents

  1. Introduction
  2. Getting Started
  3. Enterprise Applications
  4. Object-Relational Mapping
  5. Collection Mapping
  6. Entity Manager
  7. Using Queries
  8. Query Language
  9. Criteria API
  10. Advanced Object-Relational Mapping
  11. Advanced Topics
  12. XML Mapping Files
  13. Packaging and Deployment
  14. Testing
  15. Migration
Product Details:
Author: Mike Keith
Paperback: 500 pages
Publisher: Apress
Publication Date: December 04, 2009
Language: English
ISBN: 1430219564
Product Length: 9.1 inches
Product Width: 7.4 inches
Product Height: 1.3 inches
Product Weight: 1.95 pounds
Package Length: 9.2 inches
Package Width: 7.5 inches
Package Height: 1.2 inches
Package Weight: 1.65 pounds
Average Customer Rating: based on 13 reviews
Customer Reviews:
Average Customer Review: 4.0 ( 13 customer reviews )
Write an online review and share your thoughts with other customers.


Most Helpful Customer Reviews

16 of 16 found the following review helpful:

5By no stretch of the imagination could you believe the JPA 2.0 specification goes into detail betterFeb 28, 2010
By Jacek Laskowski
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.

18 of 20 found the following review helpful:

2Too EJB-focused, good theory, incomplete examplesFeb 25, 2010
By Bruno Genovese
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.

8 of 8 found the following review helpful:

4Solid Book on JPADec 27, 2009
By Paul Hoehne "political programmer"
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.

2 of 2 found the following review helpful:

5Comprehensive and well-writtenFeb 15, 2010
By E. Mills "Rick"
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.

1 of 1 found the following review helpful:

4revision of prior bookNov 17, 2011
By Readirect
Appears to be an updated revision of the "Pro EJB 3" book rather than a distinctly new title.
Based on the table of contents and scanning the first two chapters included in the sample it looks to have Just two new chapters inserted otherwise practically identical. If you already have the prior one, you're better off saving the cash on the new book and get something else. There's a whole lot of information crammed into that/this thing making it very overwhelming for a novice. I would probably like to see more examples but that would be fine if posted on the book's website. I'd like to see more written on pitfalls and best practices. It's still a very helpful book.

See all 13 customer reviews on Amazon.com
About Us   Contact Us
Privacy Policy Copyright © , Security Books. All rights reserved.
Web business powered by Amazon WebStore