Hi,
I would like to change the way serialized events are stored in the database.
The goal is to store them as TEXT (or even Postgresql XML type) instead of
BLOB to have an ability of searching over them (and maybe transforming
the XML in certain cases).
What is the proper way to change the field type (we use version 1.4)? At the
moment I’ve came up with an implementation where DefaultEventEntryStore,
DomainEventEntry, SnapshotEventEntry are replaced with corresponding
implementations using textual representation and are injected in Spring context.
The problem is that we’ll have to support them and adapt to later releases of
Axon which could be a problem in case, for instance, JpaEventStore is changed.
I don’t like this implementation also because it makes redundant conversions
between byte[] and String quite too often.
So, any ideas about how to make it with lesser custom coding?