类 HibernateProperties
- java.lang.Object
- org.springframework.boot.autoconfigure.orm.jpa.HibernateProperties
@ConfigurationProperties("spring.jpa.hibernate") public class HibernateProperties extends Object
Configuration properties for Hibernate.- 从以下版本开始:
- 2.1.0
- 另请参阅:
JpaProperties
嵌套类概要
嵌套类 修饰符和类型 类 说明 static class
HibernateProperties.Naming
构造器概要
构造器 构造器 说明 HibernateProperties()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Map<String,Object>
determineHibernateProperties(Map<String,String> jpaProperties, HibernateSettings settings)
Determine the configuration properties for the initialization of the main Hibernate EntityManagerFactory based on standard JPA properties andHibernateSettings
.String
getDdlAuto()
HibernateProperties.Naming
getNaming()
Boolean
isUseNewIdGeneratorMappings()
void
setDdlAuto(String ddlAuto)
void
setUseNewIdGeneratorMappings(Boolean useNewIdGeneratorMappings)
构造器详细资料
HibernateProperties
public HibernateProperties()
方法详细资料
getDdlAuto
public String getDdlAuto()
setDdlAuto
public void setDdlAuto(String ddlAuto)
isUseNewIdGeneratorMappings
public Boolean isUseNewIdGeneratorMappings()
setUseNewIdGeneratorMappings
public void setUseNewIdGeneratorMappings(Boolean useNewIdGeneratorMappings)
getNaming
public HibernateProperties.Naming getNaming()
determineHibernateProperties
public Map<String,Object> determineHibernateProperties(Map<String,String> jpaProperties, HibernateSettings settings)
Determine the configuration properties for the initialization of the main Hibernate EntityManagerFactory based on standard JPA properties andHibernateSettings
.- 参数:
jpaProperties
- standard JPA propertiessettings
- the settings to apply when determining the configuration properties- 返回:
- the Hibernate properties to use