Hi,
I’m reading Axon documentation and I’m wondering what is the purpose of having @Entity on aggregate (see https://docs.axoniq.io/reference-guide/1.2-domain-logic/command-model#aggregate-implementations)
Does is mean that Axon will persist the actual state into database?
Regards
Pavel
Hi Pavel,
I think that if you want to persist the actual state into the database you have to explicity configure a Standard repository.
According with the documentation (https://docs.axoniq.io/reference-guide/1.3-infrastructure-components/repository-and-event-store#standard-repositories) you can use Standard repositories instead Event Sourcing repositories. So Axon provides the GenericJpaRepository that expects the aggregate to be a valid JPA Entity.
Hope this helps you out.
Renê
Hi Renê,
thanks for the provided link. After reading the documentation it is now clear to me.
Regards
Pavel
Dne čtvrtek 8. listopadu 2018 17:20:00 UTC+1 Renê Michels Rodrigues napsal(a):