Hi there,
I was wondering why by custom aggregate identifier is not saved into a event entry correctly (its string representation); sure I wasn’t extending from AbstractAggregateIdentifier, just implemented the interface, but was expecting that AggregateIdentifier.asString() will be used and not toString() as it is now in the constructor of AbstractEventEntry:
-
this.aggregateIdentifier = event.getAggregateIdentifier().toString(); is now instead of this.aggregateIdentifier = event.getAggregateIdentifier().asString();
There is no issue if one extends from AbstractAggregateIdentifier, but IMO, asString() would serve its purpose here better. Should I report an issue?
regards,
Catalin