I use Axon 4 together with SpringBoot 2.0.5 and JPA.
I need to implement event upcasting. So I followed the guide https://docs.axoniq.io/reference-guide/operations-guide/production-considerations/versioning-events
But it seems that it is obsolete. The constructor of JpaEventStorageEngine is protected so the builder should be used. The other issue is that if I register the upcaster this way then I got “rg.hibernate.hql.internal.ast.QuerySyntaxException: DomainEventEntry is not mapped” exception.
Any idea what is wrong?