Hello,
After checking the example here, I am having issues to figure out where I am expected to get this repository. At the same time this document has obvious points in the end (already able to understand it from the code), it lacks explaining from where the repository should come.
My first thought was that by moving it to the constructor, it would automatically autowire the dependency. Unfortunately, there was no bean defined for that.
Then I tried to set up a configuration/bean with:
EventSourcingRepository.builder()
but now I also have to provide an EventStore instance (available as a bean) and an AggregateProvider (which again I have no clue where to get from).
I can eventually create all that myself, but I am not sure I need or should. It feels wrong, knowing that the framework is doing precisely the same for the command handlers that are in the aggregate.
I also took a look at how that is done on AggregateConfigurer constructor but wasn’t able to replicate the setup for the repository yet…
Axon 4.0
Spring Boot 2.1.0.RELEASE
Hope that someone can give me a hint, and the documentation can be improved.
Thanks in advance,
Fabio Carneiro