aggregateVersion

abstract val aggregateVersion: Int?

Represents the version of the aggregate. This value is used to ensure that commands are applied to the correct version of an aggregate, which is essential for maintaining consistency and preventing conflicts in concurrent environments. A null value indicates that the version is not specified or relevant.