Class HibernateProperties
- java.lang.Object
- org.springframework.boot.autoconfigure.orm.jpa.HibernateProperties
@ConfigurationProperties("spring.jpa.hibernate") public class HibernateProperties extends Object
Configuration properties for Hibernate.- Since:
- 2.1.0
- See Also:
JpaProperties
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HibernateProperties.Naming
Constructor Summary
Constructors Constructor Description HibernateProperties()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
Constructor Detail
HibernateProperties
public HibernateProperties()
Method Detail
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
.- Parameters:
jpaProperties
- standard JPA propertiessettings
- the settings to apply when determining the configuration properties- Returns:
- the Hibernate properties to use