Repositories
DugongJS defines three repository ports that must be implemented to support persistence and event sourcing:
DugongJS defines three repository ports that must be implemented to support persistence and event sourcing:
The ITransactionManager port provides a way to coordinate persistence operations across multiple repositories in a transactional context. This ensures that domain events, snapshots, and metadata changes are committed atomically.