The Java Persistence API (JPA) is a Java specification that bridges the gap between relational databases and object-oriented programming. This two-part tutorial introduces JPA and explains how Java objects are modeled as JPA entities, how entity relationships are defined, and how to use JPA's EntityManager with the Repository pattern in your Java applications.

Note that this tutorial uses Hibernate as the JPA provider. Most concepts can be extended to other Java persistence frameworks.

What is JPA?

See "What is JPA? Introduction to the Java Persistence API" to learn about the evolution of JPA and related frameworks, including EJB 3.0. and JDBC.

To read this article in full, please click here