I have this currently in my Aggregate:
@AggregateIdentifier private String fooId; private String versionNumber;
Is there a way in axon to create a composite aggregate identifier of these two fields?
Ideally, I guess UUID would be the best thing to use however the system was designed a while ago, and so at this point it can’t really be changed.
Alternatively, I could create a new field called “aggregateId” and do a concatenation of these two fields and set it as the AggregateIdentifier, but if there’s some sort of annotation which does it for me that would be great.