@EachProperty(value="jpa", primary="default") public class JpaConfiguration extends Object
| Modifier | Constructor and Description | 
|---|---|
protected  | 
JpaConfiguration(ApplicationContext applicationContext,
                Integrator integrator)  | 
| Modifier and Type | Method and Description | 
|---|---|
StandardServiceRegistry | 
buildStandardServiceRegistry(Map<String,Object> additionalSettings)
Builds the standard service registry. 
 | 
protected BootstrapServiceRegistryBuilder | 
createBootstrapServiceRegistryBuilder(Integrator integrator,
                                     ClassLoader classLoader)
Creates the default  
BootstrapServiceRegistryBuilder. | 
protected StandardServiceRegistryBuilder | 
createStandServiceRegistryBuilder(BootstrapServiceRegistry bootstrapServiceRegistry)
Creates the standard service registry builder. 
 | 
String[] | 
getPackagesToScan()  | 
Map<String,Object> | 
getProperties()  | 
void | 
setPackagesToScan(String... packagesToScan)
Sets the packages to scan. 
 | 
void | 
setProperties(Map<String,Object> jpaProperties)
Sets the JPA properties to be passed to the JPA implementation. 
 | 
public static final String PREFIX
protected JpaConfiguration(ApplicationContext applicationContext, @Nullable Integrator integrator)
applicationContext - The application contextintegrator - The Integratorpublic StandardServiceRegistry buildStandardServiceRegistry(@Nullable Map<String,Object> additionalSettings)
additionalSettings - Additional settings for the service registrypublic void setPackagesToScan(String... packagesToScan)
packagesToScan - The packages to scanpublic String[] getPackagesToScan()
public final void setProperties(@MapFormat(transformation=FLAT,keyFormat=UNDER_SCORE_SEPARATED_LOWER_CASE) Map<String,Object> jpaProperties)
jpaProperties - The JPA propertiesprotected BootstrapServiceRegistryBuilder createBootstrapServiceRegistryBuilder(@Nullable Integrator integrator, ClassLoader classLoader)
BootstrapServiceRegistryBuilder.integrator - The integrator to use. Can be nullclassLoader - The class loade rto useprotected StandardServiceRegistryBuilder createStandServiceRegistryBuilder(BootstrapServiceRegistry bootstrapServiceRegistry)
bootstrapServiceRegistry - The BootstrapServiceRegistry instanceStandardServiceRegistryBuilder instance