am 14. Januar 2010
Mike Keith and Merrick Schincariol authored a book which focuses on JPA 2, the Java persistence API which is now included in the Java EE 6 specification.
While JPA is covered in Java EE books as well, Pro JPA 2 only focuses on JPA and provides a profound coverage of the topic, attracting all kinds of developers. The books does not require previous knowledge of JPA 1 or other object relational mapping technology. A basic understanding of database systems, SQL and JDBC is required, but the required knowledge can be achieved by using Wikipedia or any introductory article.
The book motivates the usage of ORM (object relational mapping) software by showing the differences to JDBC, proprietary APIs, EJBs, and JDO. After reading the first pages, you are already able to write your first JPA 2 application, getting an overview of the various parts of JPA, configuration and running the application in a Java SE environment. This is especially useful for beginners, who are able to understand how the different parts operate and are encouraged to try out the technology.
Persistence mapping eases development and JPA 2 is a mature and feature-rich API for the use in production and through various types of applications.
At various points the authors note the differences from previous JPA standard, so users who are forced to the old specification can be aware of incompatibilities.
In a nutshell, the authors manage to satisfy both the needs of novice and experienced developers with a good introduction and an in-depth coverage.
I recommend the book to everyone who is using persistent storage in his applications.
am 22. Januar 2010
Until now I always recommended "Java Persistence with Hibernate (King/Bauer)" as reference book for Java Persistence.
I think this book has the potential to become the new reference book for this topic.
It is more concise and better structured than "Java Persistence with Hibernate" since it concentrates on JPA and does not confuse the reader with Hibernate specific details.
This was not possible with JPA1, because some important features were missing. But now with JPA2 for a big part of the applications, it is enough to just know JPA without having to know the differences/additional features of Hibernate.
am 28. Januar 2010
I bought this book to get my-self acquainted to JPA 2.0 API. This book just gives API examples (most of the time incomplete) and the examples that you can already find in Web googling.
I would have given 0 stars if I had a choice. First 20-30 pages are complete waste. Completely ignored integration Aspect (spcially not a word mentiontened about Spring, Hibernate, Toplink, Open JPA ...) and trying to distance itself from any specific framework. But this is how the real life is - wake up ! . People use frameworks like Spring, Hibernate and applications servers like JBoss, Tomcat. I can understand trying to be neutral to specific JPA implementation, but this is not really pragmatic. This not only shows how authors are out of touch but cleary shows they did not do any homeworks at all. Just copy pasted from their earlier book and put some more example.
Not a single word about integration or even OpensessionInviewFilter.
This is not really pragmatic book at all, better use a hibernate documentation.
Avoid at all cost !!