Class Relationship

java.lang.Object
io.fluxcapacitor.common.api.modeling.Relationship

public class Relationship extends Object
Describes a relationship between an entity and the aggregate that contains or owns it.

Relationships are essential for resolving which aggregate instance a given entity belongs to. This enables developers to:

  • Target a specific child entity in a command
  • Automatically load that entity as part of the aggregate during command handling
  • Ensure that any new events resulting from the command are appended to the correct aggregate

These relationships are maintained automatically by the Flux platform for entity structures annotated with @Member, but they can also be managed explicitly using commands like UpdateRelationships or RepairRelationships.

See Also:
  • Constructor Details

    • Relationship

      public Relationship()