@ConfigurationProperties(prefix="spring.jpa") public class JpaProperties extends Object
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() |
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 |
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 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.