Class ShipmentConverter
java.lang.Object
com.broadleafcommerce.order.provider.jpa.domain.support.ShipmentConverter
- All Implemented Interfaces:
jakarta.persistence.AttributeConverter<com.broadleafcommerce.order.client.domain.Shipment,
String>
public class ShipmentConverter
extends Object
implements jakarta.persistence.AttributeConverter<com.broadleafcommerce.order.client.domain.Shipment,String>
Used to convert an
Shipment
to a serialized JSON object string representation for
persistence and vice-versa.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertToDatabaseColumn
(com.broadleafcommerce.order.client.domain.Shipment attribute) com.broadleafcommerce.order.client.domain.Shipment
convertToEntityAttribute
(String dbData) com.fasterxml.jackson.databind.ObjectMapper
-
Constructor Details
-
ShipmentConverter
public ShipmentConverter(@Nullable @Qualifier("converterObjectMapper") com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
convertToDatabaseColumn
- Specified by:
convertToDatabaseColumn
in interfacejakarta.persistence.AttributeConverter<com.broadleafcommerce.order.client.domain.Shipment,
String>
-
convertToEntityAttribute
- Specified by:
convertToEntityAttribute
in interfacejakarta.persistence.AttributeConverter<com.broadleafcommerce.order.client.domain.Shipment,
String>
-
getObjectMapper
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-