# Package org.springframework.orm.jpa

@NonNullApi @NonNullFields package org.springframework.orm.jpa
Package providing integration of JPA (Java Persistence API) with Spring concepts. Contains EntityManagerFactory helper classes, a template plus callback for JPA access, and an implementation of Spring's transaction SPI for local JPA transactions.

Related Packages
Package
Description
org.springframework.orm
Root package for Spring's O/R Mapping integration classes.
org.springframework.orm.jpa.persistenceunit
Internal support for managing JPA persistence units.
org.springframework.orm.jpa.support
Classes supporting the `org.springframework.orm.jpa` package.
org.springframework.orm.jpa.vendor
Support classes for adapting to specific JPA vendors.
org.springframework.orm.hibernate5
Package providing integration of Hibernate 5.x with Spring concepts.
Class
Description
AbstractEntityManagerFactoryBean
Abstract `FactoryBean` that creates a local JPA `EntityManagerFactory` instance within a Spring application context.
DefaultJpaDialect
Default implementation of the `JpaDialect` interface.
EntityManagerFactoryAccessor
Base class for any class that needs to access a JPA `EntityManagerFactory`, usually in order to obtain a JPA `EntityManager`.
EntityManagerFactoryInfo
Metadata interface for a Spring-managed JPA `EntityManagerFactory`.
EntityManagerFactoryUtils
Helper class featuring methods for JPA EntityManager handling, allowing for reuse of EntityManager instances within transactions.
EntityManagerHolder
Resource holder wrapping a JPA `EntityManager`.
EntityManagerProxy
Subinterface of `EntityManager` to be implemented by EntityManager proxies.
ExtendedEntityManagerCreator
Delegate for creating a variety of `EntityManager` proxies that follow the JPA spec's semantics for "extended" EntityManagers.
JpaDialect
SPI strategy that encapsulates certain functionality that standard JPA 3.0 does not offer, such as access to the underlying JDBC Connection.
JpaObjectRetrievalFailureException
JPA-specific subclass of ObjectRetrievalFailureException.
JpaOptimisticLockingFailureException
JPA-specific subclass of ObjectOptimisticLockingFailureException.
JpaSystemException
JPA-specific subclass of UncategorizedDataAccessException, for JPA system errors that do not match any concrete `org.springframework.dao` exceptions.
JpaTransactionManager
`PlatformTransactionManager` implementation for a single JPA `EntityManagerFactory`.
JpaVendorAdapter
SPI interface that allows to plug in vendor-specific behavior into Spring's EntityManagerFactory creators.
LocalContainerEntityManagerFactoryBean
`FactoryBean` that creates a JPA `EntityManagerFactory` according to JPA's standard container bootstrap contract.
LocalEntityManagerFactoryBean
`FactoryBean` that creates a JPA `EntityManagerFactory` according to JPA's standard standalone bootstrap contract.
SharedEntityManagerCreator
Delegate for creating a shareable JPA `EntityManager` reference for a given `EntityManagerFactory`.