@ConfigurationProperties(prefix="spring.jpa") public class JpaProperties extends Object
Constructor and Description |
---|
JpaProperties() |
Modifier and Type | Method and Description |
---|---|
Database |
determineDatabase(DataSource dataSource)
Deprecated.
since 2.2.0 in favor of letting the JPA container detect the database
to use.
|
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)
@Deprecated public Database determineDatabase(DataSource dataSource)
Database
to use based on this configuration and the primary
DataSource
.dataSource
- the auto-configured data sourceDatabase
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.