Package | Description |
---|---|
javax.persistence |
Java Persistence is the API for the management for persistence and object/relational mapping.
|
javax.persistence.spi |
SPI for Java Persistence providers
|
Modifier and Type | Method | Description |
---|---|---|
static EntityManagerFactory |
Persistence.createEntityManagerFactory(java.lang.String persistenceUnitName) |
Create and return an EntityManagerFactory for the named
persistence unit.
|
static EntityManagerFactory |
Persistence.createEntityManagerFactory(java.lang.String persistenceUnitName,
java.util.Map properties) |
Create and return an EntityManagerFactory for the named persistence unit
using the given properties.
|
EntityManagerFactory |
EntityManager.getEntityManagerFactory() |
Return the entity manager factory for the entity manager.
|
Modifier and Type | Method | Description |
---|---|---|
EntityManagerFactory |
PersistenceProvider.createContainerEntityManagerFactory(PersistenceUnitInfo info,
java.util.Map map) |
Called by the container when an
EntityManagerFactory
is to be created. |
EntityManagerFactory |
PersistenceProvider.createEntityManagerFactory(java.lang.String emName,
java.util.Map map) |
Called by
Persistence class when an
EntityManagerFactory is to be created. |
Copyright © 2018. All rights reserved.