Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH-57 - Introduce @Identifier in DDD annotations.
Although not an original concept within the DDD book, an identifier is already part of the type based domain language in the DDD module. For symmetry reasons it's reasonable to also allow to express the concept as annotation. We went for Identifier (over Identity) for the following reasons: 1. Symmetry with the already existing Identifier interface in the type based language. 2. Contrary to the type based approach, the annotation is to be used on a field that *constitutes* the identity of the owner class. It is not the identity itself.
- Loading branch information