Learn to use the Java Persistence API (JPA) and other related APIs as found in the Java EE 8 platform from the perspective of one of the specification creators. A one-of-a-kind resource, this in-depth book provides both theoretical and practical coverage of JPA usage for experienced Java developers. Authors Mike Keith, Merrick Schincariol and Massimo Nardone 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 overarching sample application, giving you a context from which to start and helping you to understand the examples within an already familiar domain. After completing Pro JPA 2 in Java EE 8, 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. What You Will Learn
Use the JPA in the context of enterprise applications
Work with object relational mappings (ORMs), collection mappings and more
Build complex enterprise Java applications that persist data long after the process terminates
Connect to and persist data with a variety of databases, file formats, and more
Use queries, including the Java Persistence Query Language (JPQL)
Carry out advanced ORM, queries and XML mappings
Package, deploy and test your Java persistence-enabled enterprise applications Who This Book Is For Experienced Java programmers and developers with at least some prior experience with J2EE or Java EE platform APIs.
This is an excellent introduction to Java Peristence API. It covers a broad number of topics from the basics of JPA (entity managers and factories, entities, relationships, JPQL, ...) all the way through to more advanced topics like caching, entity graphs, and entity lifecycle events - along with some good tips and recommendations.
I found this to be a comprehensive guide and although I do get the heat the book is getting from being primarily EJB-oriented, it will remain in my library of excellent reference books - far nicer to read than the JPA specification itself.
This book is really an awesome resource if you really want to learn about JPA and many of the advanced topics around it. My biggest complaint is that it focuses way too much on EJB early on (and throughout in various places). I think part of that is related to the lineage of JPA as part of J2EE but I think the book could have still been effective without as much of that content. And it wouldn't have hurt them to talk a little bit about using JPA with something like the Spring Framework (I don't recall there being much if anything in the book on that).
Other than that, I would still recommend this to someone who wants to learn JPA 2 and have a desk-side reference. It's more enjoyable than reading the JPA specification :)
I was very satisfied with the book. I am a novice to JPA and need it for my job. The third chapter tries to give an overview over how JPA fits into Java EE applications, which is interesting and accessible enough to read it if you have no idea about Java EE, but if you are developing with Spring, as I am, you might as well skip it I guess. Doesn't harm your understanding of the rest of the book. There are enough and thought-out examples to illustrate the concepts the book explores.
Excellent book on JPA 2 topic. Very well written, it goes in the depths and it's quite complex. Usable as reference as well. The only minus, there is nothing about integration or usage with the Spring Framework.