smartboat / ddd-base

DDD(Domain Driven Design) base package for java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DDD Base

Domain Driven Design base package for Java.

Features

  • Annotations
  • base classes for entity, domain event etc
  • domain event
  • spring annotation integration???

Components

  • Data: Entity, VO and Aggregate
  • Behaviour: Repository, Service, Factory and Specification
  • Event
  • Infrasturcture

Code Structure

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.

Event Sourcing

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

About

DDD(Domain Driven Design) base package for java


Languages

Language:Java 100.0%