Revision

interface Revision

Represents a revision of an entity or event, providing a way to track changes and versions.

This interface is particularly useful in domain-driven design (DDD) contexts, where it can be used by domain events to indicate the version of the aggregate that produced the event. It ensures that every event has a revision property, which defaults to a predefined value if not explicitly set.

Inheritors

Properties

Link copied to clipboard
open val revision: String

Represents the revision of the domain event. This value is used to track changes or updates in the domain model, ensuring that each version of an aggregate can be uniquely identified and managed.