AggregateIdJsonSerializer
Jackson JSON serializer for AggregateId objects.
This serializer converts an AggregateId instance into a JSON object containing the context name, aggregate name, aggregate ID, and tenant ID using predefined field names from MessageRecords.
Example usage:
val aggregateId = MaterializedNamedAggregate("context", "aggregate").aggregateId("id", "tenant")
val json = ObjectMapper().writeValueAsString(aggregateId)
// Produces: {"contextName":"context","aggregateName":"aggregate","aggregateId":"id","tenantId":"tenant"}Content copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
open fun createContextual(ctxt: SerializationContext?, property: BeanProperty?): ValueSerializer<*>?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun serialize(value: AggregateId, generator: JsonGenerator, provider: SerializationContext)
Serializes the given AggregateId to JSON.
Link copied to clipboard
open fun serializeWithType(value: AggregateId?, gen: JsonGenerator?, ctxt: SerializationContext?, typeSer: TypeSerializer?)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun withFormatOverrides(config: SerializationConfig?, formatOverrides: JsonFormat.Value?): ValueSerializer<*>?
Link copied to clipboard
Link copied to clipboard