Skip to content

DDD(Domain Driven Design) base package for java

Notifications You must be signed in to change notification settings

sj123sheng/ddd-base

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DDD Base

Domain Driven Design base package for Java.

How to use?

please refer https://jitpack.io/#linux-china/ddd-base/1.0.6

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%