Class JpaProperties
- java.lang.Object
- org.springframework.boot.autoconfigure.orm.jpa.JpaProperties
@ConfigurationProperties(prefix="spring.jpa") public class JpaProperties extends Object
External configuration properties for a JPA EntityManagerFactory created by Spring.- Since:
- 1.1.0
Constructor Summary
Constructors Constructor Description JpaProperties()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.orm.jpa.vendor.Database
determineDatabase(DataSource dataSource)
Determine theDatabase
to use based on this configuration and the primaryDataSource
.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)
Constructor Detail
JpaProperties
public JpaProperties()
Method Detail
getProperties
public Map<String,String> getProperties()
setProperties
public void setProperties(Map<String,String> properties)
getMappingResources
public List<String> getMappingResources()
getDatabasePlatform
public String getDatabasePlatform()
setDatabasePlatform
public void setDatabasePlatform(String databasePlatform)
getDatabase
public org.springframework.orm.jpa.vendor.Database getDatabase()
setDatabase
public void setDatabase(org.springframework.orm.jpa.vendor.Database database)
isGenerateDdl
public boolean isGenerateDdl()
setGenerateDdl
public void setGenerateDdl(boolean generateDdl)
isShowSql
public boolean isShowSql()
setShowSql
public void setShowSql(boolean showSql)
getOpenInView
public Boolean getOpenInView()
setOpenInView
public void setOpenInView(Boolean openInView)
determineDatabase
public org.springframework.orm.jpa.vendor.Database determineDatabase(DataSource dataSource)
Determine theDatabase
to use based on this configuration and the primaryDataSource
.- Parameters:
dataSource
- the auto-configured data source- Returns:
Database