Package energy.eddie.core
Class PersistenceConfig
java.lang.Object
energy.eddie.core.PersistenceConfig
@EntityScan(basePackages="energy.eddie")
@Configuration
public class PersistenceConfig
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.boot.hibernate.autoconfigure.HibernatePropertiesCustomizerhibernatePropertiesCustomizer(tools.jackson.databind.ObjectMapper objectMapper) Sets the hibernate internal object mapper to the spring object mapper.
-
Constructor Details
-
PersistenceConfig
public PersistenceConfig()
-
-
Method Details
-
hibernatePropertiesCustomizer
@Bean public org.springframework.boot.hibernate.autoconfigure.HibernatePropertiesCustomizer hibernatePropertiesCustomizer(tools.jackson.databind.ObjectMapper objectMapper) Sets the hibernate internal object mapper to the spring object mapper. This allows customizing modules for serialization and deserialization.- Parameters:
objectMapper- Spring configured ObjectMapper- Returns:
- a customized hibernate config
- See Also:
-