@ConfigurationProperties(prefix="spring.jpa") public class JpaProperties extends Object
Modifier and Type | Class and Description |
---|---|
static class |
JpaProperties.Hibernate |
static class |
JpaProperties.Naming |
Constructor and Description |
---|
JpaProperties() |
Modifier and Type | Method and Description |
---|---|
Database |
determineDatabase(DataSource dataSource)
Determine the
Database to use based on this configuration and the primary
DataSource . |
Database |
getDatabase() |
String |
getDatabasePlatform() |
JpaProperties.Hibernate |
getHibernate() |
Map<String,Object> |
getHibernateProperties(HibernateSettings settings)
Get configuration properties for the initialization of the main Hibernate
EntityManagerFactory.
|
List<String> |
getMappingResources() |
Boolean |
getOpenInView() |
Map<String,String> |
getProperties() |
boolean |
isGenerateDdl() |
boolean |
isShowSql() |
void |
setDatabase(Database database) |
void |
setDatabasePlatform(String databasePlatform) |
void |
setGenerateDdl(boolean generateDdl) |
void |
setHibernate(JpaProperties.Hibernate hibernate) |
void |
setOpenInView(Boolean openInView) |
void |
setProperties(Map<String,String> properties) |
void |
setShowSql(boolean showSql) |
public String getDatabasePlatform()
public void setDatabasePlatform(String databasePlatform)
public Database getDatabase()
public void setDatabase(Database database)
public boolean isGenerateDdl()
public void setGenerateDdl(boolean generateDdl)
public boolean isShowSql()
public void setShowSql(boolean showSql)
public Boolean getOpenInView()
public void setOpenInView(Boolean openInView)
public JpaProperties.Hibernate getHibernate()
public void setHibernate(JpaProperties.Hibernate hibernate)
public Map<String,Object> getHibernateProperties(HibernateSettings settings)
settings
- the settings to apply when determining the configuration propertiespublic Database determineDatabase(DataSource dataSource)
Database
to use based on this configuration and the primary
DataSource
.dataSource
- the auto-configured data sourceDatabase
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.