@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 |
getDatabase() |
String |
getDatabasePlatform() |
JpaProperties.Hibernate |
getHibernate() |
Map<String,String> |
getHibernateProperties(DataSource dataSource)
Get configuration properties for the initialization of the main Hibernate
EntityManagerFactory.
|
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 |
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 JpaProperties.Hibernate getHibernate()
public void setHibernate(JpaProperties.Hibernate hibernate)
public Map<String,String> getHibernateProperties(DataSource dataSource)
dataSource
- the DataSource in case it is needed to determine the propertiesCopyright © 2017 Pivotal Software, Inc.. All rights reserved.