Class JsonConverter

  • All Implemented Interfaces:
    javax.persistence.AttributeConverter<com.fasterxml.jackson.databind.JsonNode,​String>

    public class JsonConverter
    extends Object
    implements javax.persistence.AttributeConverter<com.fasterxml.jackson.databind.JsonNode,​String>
    • Constructor Detail

      • JsonConverter

        public JsonConverter()
    • Method Detail

      • convertToDatabaseColumn

        public String convertToDatabaseColumn​(com.fasterxml.jackson.databind.JsonNode jsonNode)
        Specified by:
        convertToDatabaseColumn in interface javax.persistence.AttributeConverter<com.fasterxml.jackson.databind.JsonNode,​String>
      • convertToEntityAttribute

        public com.fasterxml.jackson.databind.JsonNode convertToEntityAttribute​(String jsonStr)
        Specified by:
        convertToEntityAttribute in interface javax.persistence.AttributeConverter<com.fasterxml.jackson.databind.JsonNode,​String>