Book description
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 techiques
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.
Table of contents
- Title Page
- Dedication
- Contents at a Glance
- Contents
- About the Authors
- About the Technical Reviewer
- Acknowledgments
- CHAPTER 1: Introduction
- CHAPTER 2: Getting Started
- CHAPTER 3: Enterprise Applications
- CHAPTER 4: Object-Relational Mapping
- CHAPTER 5: Collection Mapping
- CHAPTER 6: Entity Manager
- CHAPTER 7: Using Queries
- CHAPTER 8: Query Language
- CHAPTER 9: Criteria API
- CHAPTER 10: Advanced Object-Relational Mapping
- CHAPTER 11: Advanced Queries
- CHAPTER 12: Other Advanced Topics
- CHAPTER 13: XML Mapping Files
- CHAPTER 14: Packaging and Deployment
- CHAPTER 15: Testing
- Index
Product information
- Title: Pro JPA 2, Second Edition
- Author(s):
- Release date: September 2013
- Publisher(s): Apress
- ISBN: 9781430249269
You might also like
book
Pro JPA 2 in Java EE 8: An In-Depth Guide to Java Persistence APIs
Learn to use the Java Persistence API (JPA) and other related APIs as found in the …
book
The Well-Grounded Java Developer, Second Edition
Understanding Java from the JVM up gives you a solid foundation to grow your expertise and …
book
Java in a Nutshell, 7th Edition
This updated edition of Java in a Nutshell not only helps experienced Java programmers get the …
book
Effective Java, 3rd Edition
Since this Jolt-award winning classic was last updated in 2008, the Java programming environment has changed …