Class ShipmentConverter
- java.lang.Object
-
- com.broadleafcommerce.order.provider.jpa.domain.support.ShipmentConverter
-
- All Implemented Interfaces:
javax.persistence.AttributeConverter<com.broadleafcommerce.order.client.domain.Shipment,String>
public class ShipmentConverter extends Object implements javax.persistence.AttributeConverter<com.broadleafcommerce.order.client.domain.Shipment,String>
Used to convert anShipment
to a serialized JSON object string representation for persistence and vice-versa.
-
-
Constructor Summary
Constructors Constructor Description ShipmentConverter(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
convertToDatabaseColumn(com.broadleafcommerce.order.client.domain.Shipment attribute)
com.broadleafcommerce.order.client.domain.Shipment
convertToEntityAttribute(String dbData)
com.fasterxml.jackson.databind.ObjectMapper
getObjectMapper()
-
-
-
Method Detail
-
convertToDatabaseColumn
public String convertToDatabaseColumn(com.broadleafcommerce.order.client.domain.Shipment attribute)
- Specified by:
convertToDatabaseColumn
in interfacejavax.persistence.AttributeConverter<com.broadleafcommerce.order.client.domain.Shipment,String>
-
convertToEntityAttribute
public com.broadleafcommerce.order.client.domain.Shipment convertToEntityAttribute(String dbData)
- Specified by:
convertToEntityAttribute
in interfacejavax.persistence.AttributeConverter<com.broadleafcommerce.order.client.domain.Shipment,String>
-
getObjectMapper
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-
-