Java Persistence with JPA 2.1

Daoqi Yang, Outskirts Press, Denver, Colorado, September 2013, ISBN: 978-1-4787-0019-7, 433 pages, Price: $37.95.

View it at Outskirts Press  


This book is the second edition to the previous book: Java Persistence with JPA (Outskirts Press, Denver, March 2010, ISBN: 978-1-4327-5585-0). It adds the new features of JPA 2.1, reorganizes some existing chapters, and updates code examples and tools.

The goal of this book is to provide a concise and comprehensive coverage of Java Persistence API 2.1, which is part of Java EE 7 but can be used in JavaS E as well. Concepts are illustrated through code examples for easy understanding. It may serve as an introductory text for Java developers who do not know anything about JPA, and a reference book for experienced JPA developers who may look up for concepts and code snippets while they develop complex JPA applications.

This book covers JPA 2.1, the latest Java technology on persisting Java objects to relational databases. This is a new Java persistence standard based on object-relational mapping and utilizing object-oriented features of Java. It is expected to gradually replace JDBC and proprietary object-relational mapping frameworks and libraries for most Java applications with database access. JPA makes software development fun and leads to improved productivity.

The book introduces concepts, techniques, and application trade-offs in a manner that is easy to understand and provides many code examples for an online book ordering system. The Java source code and database DDL scripts are freely downloadable from the author's web site. The book contains instructions on how to run the code examples so that the reader can easily learn the concepts through running the code. The book is suitable for Java developers and architects who want to learn this new and standard technology, but may not have prior knowledge of JPA.

This book is also aimed at experienced JPA developers who may use this book as a reference, by providing complete coverage of JPA 2.1. It has a special chapter on JPA design patterns and performance tuning. This book will prove to be valuable for novice and experienced JPA developers.

Download Source Code

zip file (205KB) (last updated 2013-09-29, tested with EclipseLink 2.5.0)

About the Author

Daoqi Yang is a Sun Certified Enterprise Architect, with 10 years of industrial software development experience in the metro Detroit area, and 5 years of academic research and teaching experience at Wayne State University and University of Minnesota. He received his Ph.D. from Purdue University, USA and B.S. from Shandong University, China. He is the author of the book: C++ and Object-Oriented Numeric Computing for Scientists and Engineers, and more than 20 research papers in international journals in the fields of applied mathematics and scientific computing. He is currently a technical architect at MRM Worldwide, located in Birmingham, Michigan.

JPA Resources

Java EE 7 Javadoc
Java SE 7 Javadoc
Java EE 6 Javadoc
Java SE 6 Javadoc
JPA Persistence and ORM Schemas
JPA 2.1 Specification
JPA 2.0 Specification
JPA 1.0 Specification
EJB 3.1 Specification
Bean Validation 1.1 Specification
Eclipse IDE
Derby Database
Oracle Java EE Documentation
Oracle Java SE Tutorial
Oracle Java EE 7 Tutorial