Package org.axonframework.extensions.mongo.eventhandling.saga.repository


@NullMarked package org.axonframework.extensions.mongo.eventhandling.saga.repository
A Mongo-backed SagaStore, storing each saga together with its associations as a single document described by SagaEntry.

The document layout is that of Axon Framework 4, so an existing sagas collection can be read and updated without migration, provided its sagaType field holds saga class names. See MongoSagaStore for when it might not.

These types carry the API of the Axon Framework 4 Mongo extension, to ease migration of projects that cannot move off it in one go. The departures are those Axon Framework 5 forced by removing the Serializer: MongoSagaStore.Builder#serializer became converter and is now a hard requirement, since the XStreamSerializer it used to default to is gone; the SagaEntry constructor takes a Converter; and SagaEntry#getSaga takes the class to convert into, which the Serializer used to resolve from the type name stored alongside the saga.

The Mongo driver is an optional dependency of this module, so these types are only usable by a project that declares it.