Class AssociationValueEntry

java.lang.Object
org.axonframework.modelling.saga.repository.jpa.AssociationValueEntry

@Entity @Entity public class AssociationValueEntry extends Object
JPA wrapper around an Association Value. This entity is used to store relevant Association Values for Sagas.
Since:
0.7
Author:
Allard Buijze
  • Constructor Details

    • AssociationValueEntry

      public AssociationValueEntry(String sagaType, String sagaIdentifier, AssociationValue associationValue)
      Initialize a new AssociationValueEntry for a saga with given sagaIdentifier and associationValue.
      Parameters:
      sagaType - The type of Saga this association value belongs to
      sagaIdentifier - The identifier of the saga
      associationValue - The association value for the saga
    • AssociationValueEntry

      protected AssociationValueEntry()
      Constructor required by JPA. Do not use directly.
  • Method Details

    • getAssociationValue

      public AssociationValue getAssociationValue()
      Returns the association value contained in this entry.
      Returns:
      the association value contained in this entry
    • getSagaIdentifier

      public String getSagaIdentifier()
      Returns the Saga Identifier contained in this entry.
      Returns:
      the Saga Identifier contained in this entry
    • getSagaType

      public String getSagaType()
      Returns the type (fully qualified class name) of the Saga this association value belongs to
      Returns:
      the type (fully qualified class name) of the Saga
    • getId

      public Long getId()
      The unique identifier of this entry.
      Returns:
      the unique identifier of this entry