Class TenantApplicationAssetConverter
java.lang.Object
com.broadleafcommerce.tenant.provider.jpa.domain.support.TenantApplicationAssetConverter
- All Implemented Interfaces:
jakarta.persistence.AttributeConverter<JpaTenantApplicationAsset,
String>
public class TenantApplicationAssetConverter
extends Object
implements jakarta.persistence.AttributeConverter<JpaTenantApplicationAsset,String>
Transforms a
JpaTenantApplicationAsset
into a JSON object String
and vice-versa.- Author:
- Nick Crum (ncrum)
-
Constructor Summary
ConstructorDescriptionTenantApplicationAssetConverter
(com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptionconvertToDatabaseColumn
(JpaTenantApplicationAsset attribute) convertToEntityAttribute
(String dbData)
-
Constructor Details
-
TenantApplicationAssetConverter
public TenantApplicationAssetConverter(@Nullable @Qualifier("converterObjectMapper") com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
convertToDatabaseColumn
- Specified by:
convertToDatabaseColumn
in interfacejakarta.persistence.AttributeConverter<JpaTenantApplicationAsset,
String>
-
convertToEntityAttribute
- Specified by:
convertToEntityAttribute
in interfacejakarta.persistence.AttributeConverter<JpaTenantApplicationAsset,
String>
-