setupCustomMapping

protected void setupCustomMapping(Builder<Class<?>, ColumnTypeMapping<?, ? extends R>> builder)

Allows to specify custom mapping rules.

If some message types are needed to be stored differently to the generic messages, the rules for their storage can be specified using this method.

The common examples of such messages are Timestamp and Version.

The custom mapping can also be specified for marker interfaces of messages like io.spine.base.EventMessage.