Class JpaRecipientListConverter

java.lang.Object
com.broadleafcommerce.notification.provider.jpa.domain.support.JpaRecipientListConverter
All Implemented Interfaces:
jakarta.persistence.AttributeConverter<List<Recipient>,String>

public class JpaRecipientListConverter extends Object implements jakarta.persistence.AttributeConverter<List<Recipient>,String>
Transforms a list of Recipient into a JSON object String and vice-versa.
  • Constructor Details

    • JpaRecipientListConverter

      public JpaRecipientListConverter()
  • Method Details

    • convertToDatabaseColumn

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

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

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