Class TenantAssetConverter

java.lang.Object
com.broadleafcommerce.tenant.provider.jpa.domain.support.TenantAssetConverter
All Implemented Interfaces:
jakarta.persistence.AttributeConverter<JpaTenantAsset,String>

public class TenantAssetConverter extends Object implements jakarta.persistence.AttributeConverter<JpaTenantAsset,String>
Transforms a JpaTenantAsset into a JSON object String and vice-versa.
Author:
Nick Crum (ncrum)
  • Constructor Details

    • TenantAssetConverter

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

    • convertToDatabaseColumn

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

      public JpaTenantAsset convertToEntityAttribute(String dbData)
      Specified by:
      convertToEntityAttribute in interface jakarta.persistence.AttributeConverter<JpaTenantAsset,String>