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

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

    • PhoneConverter

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

    • convertToDatabaseColumn

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

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

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