Pro JPA 2: Mastering the Java Persistence API

Pro JPA 2: Mastering the Java Persistence API

by Mike Keith, Merrick Schincariol
     
 

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

…  See more details below

Overview

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

Read More

Product Details

ISBN-13:
9781430219576
Publisher:
Apress
Publication date:
12/03/2009
Sold by:
Barnes & Noble
Format:
NOOK Book
Pages:
500
Sales rank:
1,166,730
File size:
2 MB

Related Subjects

Meet the Author

Mike Keith wasthe co-specification lead for JPA 1.0 and a member of the JPA 2.0 and JPA 2.1expert groups. He sits on a number of other Java Community Process expertgroups and the Enterprise Expert Group (EEG) in the OSGi Alliance. He holds aMasters degree in Computer Science from Carleton University, and has over 20years experience in persistence and distributed systems research and practice.He has written papers and articles on JPA and spoken at numerous conferencesaround the world. He is employed as an architect at Oracle in Ottawa, Canada,and is married with four kids and two dogs.


Merrick Schincariolis a consulting engineer at Oracle, specializing in middleware technologies. Hehas a Bachelor of Science degree in Computer Science from Lakehead University,and has more than a decade of experience in enterprise softwaredevelopment. He spent some time consulting in the pre-Java enterprise andbusiness intelligence fields before moving on to write Java and J2EEapplications. His experience with large-scale systems and data warehousedesign gave him a mature and practiced perspective on enterprise software,which later propelled him into doing Java EE container implementationwork.

Read More

Customer Reviews

Average Review:

Write a Review

and post it to your social network

     

Most Helpful Customer Reviews

See all customer reviews >