Event-sourced aggregate root handling state transitions from domain events.
// Source: https://github.com/eugene-khyst/postgresql-event-sourcing | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works // Provided via justclaw.it.com; keep this notice with the code. package com.example.eventsourcing.domain; import com.example.eventsourcing.domain.command.*; import com.example.eventsourcing.domain.event.*; import com.example.eventsourcing.dto.OrderStatus; import com.example.eventsourcing.dto.WaypointDto; import com.fasterxml.jackson.annotation.JsonCreator; import eventsourcing.postgresql.domain.Aggregate; import eventsourcing.postgresql.error.AggregateStateException; import lombok.Getter; import lombok.NonNull; import lombok.ToString; import java.math.BigDecimal; import java.time.OffsetDateTime; import java.util.EnumSet; impor ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key