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.autoconfigure.orm.jpa.HibernatePropertiesCustomizerjsonFormatMapperCustomizer(com.fasterxml.jackson.databind.ObjectMapper objectMapper) Sets the hibernate internal object mapper to the spring object mapper.
-
Constructor Details
-
PersistenceConfig
public PersistenceConfig()
-
-
Method Details
-
jsonFormatMapperCustomizer
@Bean public org.springframework.boot.autoconfigure.orm.jpa.HibernatePropertiesCustomizer jsonFormatMapperCustomizer(com.fasterxml.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:
-