Class AddressMapConverter
java.lang.Object
com.broadleafcommerce.paymenttransaction.provider.jpa.domain.support.AddressMapConverter
public class AddressMapConverter
extends Object
implements jakarta.persistence.AttributeConverter<Map<String,Address>,String>
Used to convert a
Map
of Addresses
to a serialized JSON object string
representation for persistence and vice-versa.- Author:
- Samarth Dhruva (samarthd), Marie Standeven (marieStandeven)
-
Constructor Summary
ConstructorDescriptionAddressMapConverter
(com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptionconvertToDatabaseColumn
(Map<String, Address> attribute) convertToEntityAttribute
(String dbData) com.fasterxml.jackson.databind.ObjectMapper
-
Constructor Details
-
AddressMapConverter
public AddressMapConverter(@Nullable @Qualifier("converterObjectMapper") com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
convertToDatabaseColumn
-
convertToEntityAttribute
-
getObjectMapper
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-