public class SystemEntitySerializer extends com.fasterxml.jackson.databind.JsonSerializer<SystemEntitySerializationAware>
SystemEntitySerializationAware
and which should return true for SystemEntitySerializationAware.isSystemEntity(). A SystemEntitySerializationAware is serialized to a string containing the entity id only.
If another custom serializer is defined for the class which implements SystemEntitySerializationAware, then that one will take precedence. Make sure you serialize the system entity the
same way.
If another custom serializer is defined for the parent class, but the child class applies
SystemEntitySerializationAware, then SystemEntitySerializer takes precedence for the child class.
| Constructor and Description |
|---|
SystemEntitySerializer() |
| Modifier and Type | Method and Description |
|---|---|
void |
serialize(SystemEntitySerializationAware o,
com.fasterxml.jackson.core.JsonGenerator jg,
com.fasterxml.jackson.databind.SerializerProvider sp) |
public void serialize(SystemEntitySerializationAware o, com.fasterxml.jackson.core.JsonGenerator jg, com.fasterxml.jackson.databind.SerializerProvider sp) throws IOException
serialize in class com.fasterxml.jackson.databind.JsonSerializer<SystemEntitySerializationAware>IOExceptionCopyright © 2023. All rights reserved.