cqrs4j-example-shared
Shared code for all demo applications and client & server.
ℹ️ There is often a discussion if exposing a library like this one to the outside world is a good idea. In case of a homogenous environment it can be OK to share commands, events and value objects as a library. This will save some time as they are used all over the place. If you don't like this approach, simply copy the content of this library into your microservice projects.
Commands
- CreatePersonCommand - A new person should be created in the system. (Example: CreatePersonCommand.json)
Events
- PersonCreatedEvent - A new person was created in the system. (Example: PersonCreatedEvent.json)
Value Objects
- PersonId - Identifies uniquely a person aggregate.
- PersonName - Name of a person.
Supporting classes
- SharedEntityIdFactory - Factory that creates entity identifier instances based on the type.
- SharedUtils - Utilities.