Class AbstractSagaEntry<T>

java.lang.Object
org.axonframework.modelling.saga.repository.jpa.AbstractSagaEntry<T>
Type Parameters:
T - the serialized content-type of the saga.

@Deprecated @MappedSuperclass public abstract class AbstractSagaEntry<T> extends Object
Deprecated.
since moving to jakarta, as the generic serializedSaga was not handled well. There is a SagaEntry not extending from this abstract class anymore, you might be able to use instead.
Java Persistence Entity allowing sagas to be stored in a relational database. The serialized type of the
Since:
3.0.3
Author:
Christophe Bouhier
  • Field Details

    • sagaId

      protected String sagaId
      Deprecated.
    • sagaType

      protected String sagaType
      Deprecated.
    • revision

      protected String revision
      Deprecated.
    • serializedSaga

      protected T serializedSaga
      Deprecated.
  • Constructor Details

    • AbstractSagaEntry

      public AbstractSagaEntry(Object saga, String sagaIdentifier, Serializer serializer, Class<T> contentType)
      Deprecated.
      Constructs a new SagaEntry for the given saga. The given saga must be serializable. The provided saga is not modified by this operation.
      Parameters:
      saga - The saga to store
      sagaIdentifier - The saga identifier
      serializer - The serialization mechanism to convert the Saga to a byte stream
      contentType - The saga content type to serialize to
    • AbstractSagaEntry

      protected AbstractSagaEntry()
      Deprecated.
      Default constructor required by JPA.
  • Method Details

    • getSerializedSaga

      public T getSerializedSaga()
      Deprecated.
      Returns the serialized form of the Saga.
      Returns:
      the serialized form of the Saga
    • getSagaId

      public String getSagaId()
      Deprecated.
      Returns the identifier of the saga contained in this entry
      Returns:
      the identifier of the saga contained in this entry
    • getRevision

      public String getRevision()
      Deprecated.
      Returns the revision of the serialized saga
      Returns:
      the revision of the serialized saga
    • getSagaType

      public String getSagaType()
      Deprecated.
      Returns the type identifier of the serialized saga
      Returns:
      the type identifier of the serialized saga