Class CommitModelsWithRelationships

All Implemented Interfaces:
JsonType, RetryAwareRequest

public final class CommitModelsWithRelationships extends CommitModels
A Model commit that additionally validates relationship selections. Its distinct wire type is intentional: runtimes without relationship-read validation must reject the request instead of silently committing it.
  • Constructor Details

    • CommitModelsWithRelationships

      public CommitModelsWithRelationships(CommitModels commit, List<ModelRelationshipRead> readRelationships)
      Adds immutable relationship dependencies while retaining the original request and commit identity.
    • CommitModelsWithRelationships

      @ConstructorProperties({"requestId","commitId","readStateIndex","readModelIds","substeps","conflictPolicy","guarantee","possibleDuplicate","migration","readRelationships"}) public CommitModelsWithRelationships(long requestId, String commitId, long readStateIndex, List<String> readModelIds, List<ModelCommitStep> substeps, ModelConflictPolicy conflictPolicy, Guarantee guarantee, boolean possibleDuplicate, boolean migration, List<ModelRelationshipRead> readRelationships)