Due to a big code refactor a bunch of events are no longer relevant. The most obvious solution would be to simply delete these classes. But the domain_event_entry table has a bunch of records containing these events as a payload.
So what will happen when these events are replayed while the corresponding Java classes do not exist anymore? I would assume an exception at runtime. Which are the alternatives to handle this issue (besides not deleting the Java classes or deleting these records from the domain_event_entry table)
Thanks in advance!