Pro JPA 2, Second Edition

  • 11h 31m
  • Merrick Schincariol, Mike Keith
  • Apress
  • 2013

Pro JPA 2, Second Edition introduces, explains, and demonstrates how to use the new Java Persistence API (JPA) 2.1 from the perspective of one of the specification creators. A one-of-a-kind resource, it provides both theoretical and extremely practical coverage of JPA usage for both beginning and advanced developers.

Authors Mike Keith and Merrick Schincariol take a hands–on approach, based on their wealth of experience and expertise, by giving examples to illustrate each concept of the API and showing how it is used in practice. 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 of JPA and be able to successfully code applications using its annotations and APIs. The book also serves as an excellent reference guide during initial and later JPA application experiences.

  • Hands-on examples for all aspects of the JPA specification
  • 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

  • How to get started with enterprise applications using JPA 2.1
  • Simple and advanced object–relational mapping techniques
  • How to use the complete Entity Manager API
  • How to create queries using the query language (JP QL) and the Criteria API
  • Locking, concurrency, and other advanced concepts
  • How to use XML mapping files and descriptors
  • How to package and deploy your Java Persistence applications
  • How to test 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 offer an introduction to persistence and to the basic concepts so these readers can have solid base from which to become proficient at JPA.
  • Those who know and/or use existing ORM persistence products such as Hibernate or TopLink/EclipseLink.
  • Those who have already used JPA and want to learn about newer features introduced by JPA 2.1, 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 Java EE.

About the Authors

Mike Keith was the 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 expert groups and the Enterprise Expert Group (EEG) in the OSGi Alliance. He holds a Masters 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 conferences around the world. He is employed as an architect at Oracle in Ottawa, Canada.

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

In this Book

  • Introduction
  • Getting Started
  • Enterprise Applications
  • Object-Relational Mapping
  • Collection Mapping
  • Entity Manager
  • Using Queries
  • Query Language
  • Criteria API
  • Advanced Object-Relational Mapping
  • Advanced Queries
  • Other Advanced Topics
  • XML Mapping Files
  • Packaging and Deployment
  • Testing
SHOW MORE
FREE ACCESS