Class AbstractSetConverter<T>
java.lang.Object
com.broadleafcommerce.common.jpa.converter.AbstractSetConverter<T>
- Direct Known Subclasses:
CurrencySetConverter
,StringSetConverter
public abstract class AbstractSetConverter<T>
extends Object
implements javax.persistence.AttributeConverter<HashSet<T>,String>
- Author:
- Nick Crum (ncrum)
-
Constructor Summary
ConstructorDescriptionAbstractSetConverter
(Class<T> elementType, com.fasterxml.jackson.databind.ObjectMapper objectMapper) AbstractSetConverter
(Class<T> elementType, com.fasterxml.jackson.databind.ObjectMapper objectMapper, boolean initIfNull) -
Method Summary
Modifier and TypeMethodDescriptionconvertToDatabaseColumn
(HashSet<T> set) convertToEntityAttribute
(String mapJson) com.fasterxml.jackson.databind.ObjectMapper
-
Constructor Details
-
AbstractSetConverter
-
AbstractSetConverter
-
-
Method Details
-
convertToDatabaseColumn
-
convertToEntityAttribute
-
getObjectMapper
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-