generateId
Generates a unique ID string for this NamedAggregate.
This extension function provides a convenient way to generate IDs directly on aggregate instances. It materializes the aggregate and delegates to AggregateIdGeneratorRegistrar.generateId.
Return
the generated ID as a string val aggregate: NamedAggregate = // some aggregate instance val id = aggregate.generateId() // Generates a unique ID for this aggregate