Class ContextDataJsonAttributeConverter
java.lang.Object
org.apache.logging.log4j.core.appender.db.jpa.converter.ContextDataJsonAttributeConverter
- All Implemented Interfaces:
javax.persistence.AttributeConverter<ReadOnlyStringMap,String>
public class ContextDataJsonAttributeConverter
extends Object
implements javax.persistence.AttributeConverter<ReadOnlyStringMap,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 Summary
Constructors -
Method Summary
-
Constructor Details
-
ContextDataJsonAttributeConverter
public ContextDataJsonAttributeConverter()
-
-
Method Details
-
convertToDatabaseColumn
- Specified by:
convertToDatabaseColumnin interfacejavax.persistence.AttributeConverter<ReadOnlyStringMap,String>
-
convertToEntityAttribute
- Specified by:
convertToEntityAttributein interfacejavax.persistence.AttributeConverter<ReadOnlyStringMap,String>
-