public class ContextDataJsonAttributeConverter extends Object implements javax.persistence.AttributeConverter<ReadOnlyStringMap,String>
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 and Description |
|---|
ContextDataJsonAttributeConverter() |
| Modifier and Type | Method and Description |
|---|---|
String |
convertToDatabaseColumn(ReadOnlyStringMap contextData) |
ReadOnlyStringMap |
convertToEntityAttribute(String s) |
public String convertToDatabaseColumn(ReadOnlyStringMap contextData)
convertToDatabaseColumn in interface javax.persistence.AttributeConverter<ReadOnlyStringMap,String>public ReadOnlyStringMap convertToEntityAttribute(String s)
convertToEntityAttribute in interface javax.persistence.AttributeConverter<ReadOnlyStringMap,String>Copyright © 1999-2017 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.