Package | Description |
---|---|
javax.persistence |
The javax.persistence package contains the classes and interfaces that define the contracts
between a persistence provider and the managed classes and the clients of the Java Persistence API.
|
javax.persistence.spi |
The javax.persistence.spi package defines the classes and interfaces that are implemented by the
persistence provider and the Java EE container for use by the container, provider, and/or Persistence
bootstrap class in deployment and bootstrapping.
|
Modifier and Type | Method and Description |
---|---|
static EntityManagerFactory |
Persistence.createEntityManagerFactory(String persistenceUnitName)
Create and return an EntityManagerFactory for the named persistence unit.
|
static EntityManagerFactory |
Persistence.createEntityManagerFactory(String persistenceUnitName,
Map properties)
Create and return an EntityManagerFactory for the named persistence unit using the given properties.
|
Modifier and Type | Method and Description |
---|---|
EntityManagerFactory |
PersistenceProvider.createContainerEntityManagerFactory(PersistenceUnitInfo info,
Map map)
Called by the container when an EntityManagerFactory
is to be created.
|
EntityManagerFactory |
PersistenceProvider.createEntityManagerFactory(String emName,
Map map)
Called by Persistence class when an EntityManagerFactory
is to be created.
|