public class JsonAttributeConverter
extends java.lang.Object
implements javax.persistence.AttributeConverter<com.fasterxml.jackson.databind.JsonNode,java.lang.String>
AttributeConverter to convert JsonNode objects into their String representations for storage
and vice versa.| Constructor and Description |
|---|
JsonAttributeConverter() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
convertToDatabaseColumn(com.fasterxml.jackson.databind.JsonNode attribute) |
com.fasterxml.jackson.databind.JsonNode |
convertToEntityAttribute(java.lang.String dbData) |
@Nullable
public java.lang.String convertToDatabaseColumn(@Nullable
com.fasterxml.jackson.databind.JsonNode attribute)
convertToDatabaseColumn in interface javax.persistence.AttributeConverter<com.fasterxml.jackson.databind.JsonNode,java.lang.String>@Nullable
public com.fasterxml.jackson.databind.JsonNode convertToEntityAttribute(@Nullable
java.lang.String dbData)
convertToEntityAttribute in interface javax.persistence.AttributeConverter<com.fasterxml.jackson.databind.JsonNode,java.lang.String>