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  

Description

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 http://docs.oracle.com/javaee/7/api/
Java SE 7 Javadoc http://docs.oracle.com/javase/7/docs/api/
Java EE 6 Javadoc http://docs.oracle.com/javaee/6/api/
Java SE 6 Javadoc http://docs.oracle.com/javase/6/docs/api/
JPA Persistence and ORM Schemas http://www.oracle.com/webfolder/technetwork/jsc/xml/ns/persistence/index.html
JPA 2.1 Specificationhttp://jcp.org/en/jsr/detail?id=338
JPA 2.0 Specification http://jcp.org/en/jsr/detail?id=317
JPA 1.0 Specificationhttp://jcp.org/en/jsr/detail?id=220
EJB 3.1 Specification http://jcp.org/en/jsr/detail?id=318
Bean Validation 1.1 Specification http://jcp.org/en/jsr/detail?id=303
EclipseLink http://www.eclipse.org/eclipselink/
http://www.eclipse.org/eclipselink/documentation/
http://wiki.eclipse.org/EclipseLink/UserGuide/Developing_JPA_Projects_(ELUG)
OpenJPA http://openjpa.apache.org/
http://openjpa.apache.org/documentation.html
Hibernate http://www.hibernate.org/downloads.html
http://www.hibernate.org/docs.html
http://www.hibernate.org/subprojects/validator.html
JBoss http://www.jboss.org/jbossas/
https://www.jboss.org/community/wiki/JBossApplicationServerOfficialDocumentationPage
Eclipse IDE http://www.eclipse.org/
Derby Database http://db.apache.org/derby
Oracle Java EE Documentation http://www.oracle.com/technetwork/java/javaee/documentation/index.html
Oracle Java SE Tutorial http://java.sun.com/docs/books/tutorial
Oracle Java EE 7 Tutorial http://docs.oracle.com/javaee/7/tutorial/doc/home.htm