-
Generated from code
-
Make Business Knowledge accessible
-
Makes knowledge mistmatch visible
-
Leads to Ubiquitous Language
Use code to generate a glossary that can be read by business people. They can say if a word is not exactly good. It can be changed from the code.
Java files with marker annotations (ex. @Aggregate
, @Entity
).
Inspiration for such annotations are shown in Patternity by Cyrille Martraire.
ShoppingCart.java
package com.organisation.domain.order;
/**
* A shopping cart blah blah blah.
*/
@Aggregate
public class ShoppingCart{
// ...
}
ShoppingCartItem.java
package com.organisation.domain.order;
/**
* An item that is hold the shopping cart to be ordered.
*/
@Entity
public class ShoppingCartItem{
// ...
}
# Order
[Link](/src/main/java/com/organisation/domain/order/)
## Shopping Cart
A shopping cart blah blah blah.
[Link](/src/main/java/com/organisation/domain/order/ShoppingCart.java)
### Shopping Cart Item
An item that is hold the shopping cart to be ordered.
[Link](/src/main/java/com/organisation/domain/order/ShoppingCartItem.java)