Skip to content

RameshMF/JPA-Tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

JPA-Tutorial - Guide to Java Persistence API

The Java Persistence API (JPA) is the Java standard for mapping Java objects to a relational database. Mapping Java objects to database tables and vice versa is called Object-relational mapping (ORM). The Java Persistence API (JPA) is one possible approach to ORM. Via JPA the developer can map, store, update and retrieve data from relational databases to Java objects and vice versa. JPA can be used in Java-EE and Java-SE applications.

JPA is a specification and several implementations are available. Popular implementations are Hibernate, EclipseLink and Apache OpenJPA.

In this tutorial, we will learn JPA in depth with Hibernate as Implementation.
  • JPA Entity Class Basics - Check out how to create JPA entity, what are rules to create JPA entity and what are features JPA Entity provides like cascading, lazy, relationships, inheritance etc.
  • JPA Architecture - In this article, we will discuss the architecture(core classes and interfaces of Java Persistence API) of the JPA specification.
  • JPA 2 with Hibernate 5 Bootstrapping Example - The Java Persistence API (a.k.a. JPA) is a Java specification for managing, persisting and accessing data between objects and relational database. Hibernate is an ORM (Object Relational Mapping) tool which implements JPA specification.

Domain Model

JPA Operations

 JPA Core Interfaces

Inheritance Mapping