java.lang.Object
com.broadleafcommerce.paymenttransaction.provider.jpa.domain.support.AddressMapConverter
All Implemented Interfaces:
jakarta.persistence.AttributeConverter<Map<String,Address>,String>

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 Details

    • AddressMapConverter

      public AddressMapConverter(@Nullable @Qualifier("converterObjectMapper") com.fasterxml.jackson.databind.ObjectMapper objectMapper)
  • Method Details

    • convertToDatabaseColumn

      public String convertToDatabaseColumn(Map<String,Address> attribute)
      Specified by:
      convertToDatabaseColumn in interface jakarta.persistence.AttributeConverter<Map<String,Address>,String>
    • convertToEntityAttribute

      public Map<String,Address> convertToEntityAttribute(String dbData)
      Specified by:
      convertToEntityAttribute in interface jakarta.persistence.AttributeConverter<Map<String,Address>,String>
    • getObjectMapper

      public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()