Class ExtensionsJsonConverter

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

    public class ExtensionsJsonConverter
    extends Object
    implements javax.persistence.AttributeConverter<Map,​String>
    Json to model metadata converter
    • Constructor Detail

      • ExtensionsJsonConverter

        public ExtensionsJsonConverter()
    • Method Detail

      • convertToDatabaseColumn

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

        public Map<String,​Object> convertToEntityAttribute​(String json)
        Specified by:
        convertToEntityAttribute in interface javax.persistence.AttributeConverter<Map,​String>
      • getObjectMapper

        protected com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()