Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
State-Stored Aggregate: AggregateIdentifier has to be String #1062
we use state-based aggregates in our application.
We encountered that we have to use String for the aggregate identifier. Otherwise an exception occurs while sending a command to the aggregate by annotating the id field with @TargetAggregateIdentifier. In this example I tried to use a java.util.UUID:
While researching I stumbled upon org.axonframework.modelling.command.GenericJpaRepository.Builder.identifierConverter(Function<String, ?>)
But there are two major problems:
As stated in #484 you also prefer the usage of value objects, but unfortunately I do not find a way to do this. Maybe it's a lack of documentation, but I fear it's a missing feature. That's the reason why I decided to create this issue.
Hi @OLibutzki, I think I can alleviate the two major problems you've noted here:
Concluding, I think point 1 is luckily covered by the framework.
Point 2 is something I to be honest do not view as to big of a struggle. If my assumptions on your question were incorrect in this area, please tell me so.
If you're however okay with the above given answer, I think we can close this issue of for now. :-)