Closed Sch3lp closed 2 years ago
This is probably going to end up in all CompetitionCommandHandlers:
private fun findCompetitionOrThrow(competitionId: CompetitionId): Competition {
return queryExecutor.execute(FindCompetition(competitionId))
?: throw EntityNotFoundDomainRuntimeException("Competition with id ${competitionId.id} not found")
}
So find a way to remove that duplication when it happens!
effit-backend
toeffit-cqrs-backend
so I can continuously refer to both architectures on stream.CompetitionCommandHandlers
(see comment)RestApiExposed
interface usage from Core domain objects (should have been moved to theadapter-ui
module)implement command execution as applying commands to aggregates instead of logic in commandhandlersCheck out the module dependency diagram: