public class Persistence
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PERSISTENCE_PROVIDER
Deprecated.
|
protected static java.util.Set<PersistenceProvider> |
providers
Deprecated.
|
Constructor and Description |
---|
Persistence() |
Modifier and Type | Method and Description |
---|---|
static EntityManagerFactory |
createEntityManagerFactory(java.lang.String name)
Create an return an EntityManagerFactory for the named unit.
|
static EntityManagerFactory |
createEntityManagerFactory(java.lang.String name,
java.util.Map props)
Create and return an EntityManagerFactory for the named unit.
|
static PersistenceUtil |
getPersistenceUtil() |
@Deprecated protected static final java.util.Set<PersistenceProvider> providers
@Deprecated public static final java.lang.String PERSISTENCE_PROVIDER
public static EntityManagerFactory createEntityManagerFactory(java.lang.String name)
name
- - the name of the persistence unitpublic static EntityManagerFactory createEntityManagerFactory(java.lang.String name, java.util.Map props)
name
- - the name of the persistence unitprops
- - persistence unit propertiespublic static PersistenceUtil getPersistenceUtil()