Package org.axonframework.modelling.saga.repository.jpa
@NullMarked
package org.axonframework.modelling.saga.repository.jpa
A JPA-backed
SagaStore, storing sagas as
SagaEntry rows and their associations as
AssociationValueEntry rows.
The entity and column layout is that of Axon Framework 4, so an existing saga table can be read and updated without
migration, provided its saga type column holds saga class names. See
JpaSagaStore for when it might not.
These types carry the Axon Framework 4 API, 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:
JpaSagaStore.Builder#serializer became converter, the
SagaEntry constructor takes a
Converter, and JpaSagaStore#serializedObjectType is gone along with the
SerializedSaga type it selected.
-
ClassesClassDescriptionJPA wrapper around an Association Value.JPA implementation of the
SagaStore.Builder class to instantiate aJpaSagaStore.SagaEntry<T>Java Persistence Entity allowing sagas to be stored in a relational database.