revision

open val revision: String

The revision/version identifier for this entity.

The revision follows semantic versioning format (major.minor.patch) and is used to:

  • Track structural changes in domain events and aggregates

  • Ensure compatibility during event deserialization

  • Support migration strategies for domain model evolution

  • Provide audit trails for version changes

When not explicitly provided, defaults to DEFAULT_REVISION. Custom revisions should be set when the event or aggregate structure changes in ways that affect serialization or business logic.