Class VariableValueJsonConverter

  • All Implemented Interfaces:
    javax.persistence.AttributeConverter<VariableValue<?>,​String>

    public class VariableValueJsonConverter
    extends Object
    implements javax.persistence.AttributeConverter<VariableValue<?>,​String>
    • Constructor Detail

      • VariableValueJsonConverter

        public VariableValueJsonConverter()
      • VariableValueJsonConverter

        public VariableValueJsonConverter​(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
    • Method Detail

      • convertToDatabaseColumn

        public String convertToDatabaseColumn​(VariableValue<?> variableValue)
        Specified by:
        convertToDatabaseColumn in interface javax.persistence.AttributeConverter<VariableValue<?>,​String>
      • convertToEntityAttribute

        public VariableValue<?> convertToEntityAttribute​(String dbData)
        Specified by:
        convertToEntityAttribute in interface javax.persistence.AttributeConverter<VariableValue<?>,​String>