But I’m not sure how existing Snapshots should be handled.
Do I have to delete them for all events to get really upcasted the way I would like them to be?
Or do I have to upcast the snapshot-event? Are there any examples how this could be done?
And personally, I think we should extend this to allow upcasters for Snapshots and Sagas too (although that’s still under discussion).
The pragmatic approach I’d share with you, is to just clear out your snapshot tables if the aggregates have a new format.
If that’s not manageable for you at the moment, you can also add the @Revision annotation to your Aggregate Roots, and supply a snapshotFilter (this is a Predicate) to the EventStorageEngine you’re using.
Ow, and sorry for the late reply! We’ve been tremendously busy here at AxonIQ, in benefit of the framework of course.