I create an aggregate where ID is set as the current year.
I don’t want to be able to call the command for create another instance of this aggregate with the same year as the one stored previously.
Do you think is a good idea to catch the AggregateNotFound exception for ensure I’m not saving an already existing aggregate?
I cannot access to any method on Axon Repository<?> class for checking if aggregate exists.
Thank you very much for your help.