@ConfigurationProperties(prefix="spring.jpa") public class JpaProperties extends Object
Constructor and Description |
---|
JpaProperties() |
Modifier and Type | Method and Description |
---|---|
org.springframework.orm.jpa.vendor.Database |
determineDatabase(DataSource dataSource)
Deprecated.
since 2.2.0 in favor of letting the JPA container detect the database
to use.
|
org.springframework.orm.jpa.vendor.Database |
getDatabase() |
String |
getDatabasePlatform() |
List<String> |
getMappingResources() |
Boolean |
getOpenInView() |
Map<String,String> |
getProperties() |
boolean |
isGenerateDdl() |
boolean |
isShowSql() |
void |
setDatabase(org.springframework.orm.jpa.vendor.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 org.springframework.orm.jpa.vendor.Database getDatabase()
public void setDatabase(org.springframework.orm.jpa.vendor.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 org.springframework.orm.jpa.vendor.Database determineDatabase(DataSource dataSource)
Database
to use based on this configuration and the primary
DataSource
.dataSource
- the auto-configured data sourceDatabase
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.