Class ContextDataJsonAttributeConverter

  • All Implemented Interfaces:
    javax.persistence.AttributeConverter<ReadOnlyStringMap,​java.lang.String>

    public class ContextDataJsonAttributeConverter
    extends java.lang.Object
    implements javax.persistence.AttributeConverter<ReadOnlyStringMap,​java.lang.String>
    A JPA 2.1 attribute converter for ReadOnlyStringMaps in LogEvents. This converter is capable of converting both to and from Strings. In addition to other optional dependencies required by the JPA appender, this converter requires the Jackson Data Processor.
    • Constructor Detail

      • ContextDataJsonAttributeConverter

        public ContextDataJsonAttributeConverter()
    • Method Detail

      • convertToDatabaseColumn

        public java.lang.String convertToDatabaseColumn​(ReadOnlyStringMap contextData)
        Specified by:
        convertToDatabaseColumn in interface javax.persistence.AttributeConverter<ReadOnlyStringMap,​java.lang.String>
      • convertToEntityAttribute

        public ReadOnlyStringMap convertToEntityAttribute​(java.lang.String s)
        Specified by:
        convertToEntityAttribute in interface javax.persistence.AttributeConverter<ReadOnlyStringMap,​java.lang.String>