Domain Driven Design base package for Java.
- Annotations
- base classes for entity, domain event etc
- domain event
- spring annotation integration???
- Data: Entity, VO and Aggregate
- Behaviour: Repository, Service, Factory and Specification
- Event
- Infrasturcture
Please visit src/test/java for code structure
If you use Kotlin to develop application, the structure will be different, please add entity, vo and repository in the same kt file.
Please extends BaseDomainEvent and use ApplicationEventPublisher to publish event.
please refer https://spring.io/blog/2015/02/11/better-application-events-in-spring-framework-4-2