Class JMoleculesDddRules

java.lang.Object
org.jmolecules.archunit.JMoleculesDddRules

public class JMoleculesDddRules extends Object
A set of ArchUnit rules that allow verification of domain models. In short the rules here verify:
  • Aggregates only refer to entities that are declared to be part of it.
  • References to other aggregates are established via Associations or identifier references.
  • Annotated identifiables do have an identifier.
  • Value objects and identifiers do not refer to identifiables.
Those rules are mostly driven by what's been presented by John Sullivan in his blog post here.
Author:
Oliver Drotbohm, Torsten Juergeleit, Hasan Kara