setupEventRouting

protected void setupEventRouting(EventRouting<I> routing)

A callback for derived repository classes to customize routing schema for events.

Default routing returns the ID of the entity which produced the event. This allows to “link” different kinds of entities by having the same class of IDs. More complex scenarios (e.g. one-to-many relationships) may require custom routing schemas.

Parameters

routing

the routing schema to customize