I’m trying to follow webinars and create simple Spring app using Axon.
- download Spring app template,
- add dependency for org.axonframework:axon-spring:3.0.7,
- setup JPA,
- add spring controller, one aggregate with command handler method, one command, and one event
- add annotations
@EntityScan(basePackageClasses = DomainEventEntry.class)
to application class.
Everything works well - command dispatched to aggregate, event is created… But it is not persisted. I got a WARN:
o.a.c.gateway.DefaultCommandGateway : Command ‘com.example.axon2.domain.CreateProfile’ resulted in org.axonframework.eventsourcing.eventstore.EventStoreException(An event for aggregate [432ec66d-3981-46af-86d2-dba2bc793db1] at sequence  could not be persisted)
And original exception from Hibernate is:
org.hibernate.MappingException: Unknown entity: org.axonframework.eventsourcing.eventstore.jpa.DomainEventEntry
I have a feeling that I missed something very small, and something really simple ).
What could be an issue?