Modifier and Type | Class and Description |
---|---|
static class |
DefaultJPAConfig.JPAConfigProvider |
JPAConfig.PersistenceUnit
Constructor and Description |
---|
DefaultJPAConfig(JPAConfig.PersistenceUnit... persistenceUnits) |
DefaultJPAConfig(java.util.Set<JPAConfig.PersistenceUnit> persistenceUnits) |
Modifier and Type | Method and Description |
---|---|
static JPAConfig |
from(java.util.Map<java.lang.String,java.lang.String> map)
Create a default JPA configuration from a map of names to unit names.
|
static JPAConfig |
of(java.lang.String name,
java.lang.String unitName)
Create a default JPA configuration with the given name and unit name.
|
static JPAConfig |
of(java.lang.String n1,
java.lang.String u1,
java.lang.String n2,
java.lang.String u2)
Create a default JPA configuration with the given names and unit names.
|
static JPAConfig |
of(java.lang.String n1,
java.lang.String u1,
java.lang.String n2,
java.lang.String u2,
java.lang.String n3,
java.lang.String u3)
Create a default JPA configuration with the given names and unit names.
|
java.util.Set<JPAConfig.PersistenceUnit> |
persistenceUnits() |
public DefaultJPAConfig(java.util.Set<JPAConfig.PersistenceUnit> persistenceUnits)
public DefaultJPAConfig(JPAConfig.PersistenceUnit... persistenceUnits)
public java.util.Set<JPAConfig.PersistenceUnit> persistenceUnits()
persistenceUnits
in interface JPAConfig
public static JPAConfig of(java.lang.String name, java.lang.String unitName)
name
- the name for the enitity manager factoryunitName
- the persistence unit name as used in `persistence.xml`public static JPAConfig of(java.lang.String n1, java.lang.String u1, java.lang.String n2, java.lang.String u2)
public static JPAConfig of(java.lang.String n1, java.lang.String u1, java.lang.String n2, java.lang.String u2, java.lang.String n3, java.lang.String u3)
public static JPAConfig from(java.util.Map<java.lang.String,java.lang.String> map)