class ForeignReferenceSerializer extends JsonSerializer<java.lang.Object>
A serializer for writing foreign domain references with a simple format: just the key field(s) and an ID.
Type | Name and description |
---|---|
private java.util.List<java.lang.String> |
keys The key fields for the domain reference. |
Constructor and description |
---|
ForeignReferenceSerializer
(java.util.List<java.lang.String> keys) Builds the serializer, which dumps the given key fields. |
ForeignReferenceSerializer
() |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
serialize(java.lang.Object value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider provider) Serializes the domain record reference using the short string (e.g. primary key field). |
The key fields for the domain reference.
Groovy Documentation