java.lang.Object
com.broadleafcommerce.vendor.provider.jpa.domain.support.AddressConverter
All Implemented Interfaces:
javax.persistence.AttributeConverter<Address,String>

public class AddressConverter extends Object implements javax.persistence.AttributeConverter<Address,String>
Used to convert an Address to a serialized JSON object string representation for persistence and vice-versa.
  • Constructor Details

    • AddressConverter

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

    • convertToDatabaseColumn

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

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

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