Package org.jmolecules.ddd.annotation
Annotation Type Identity
-
@Retention(RUNTIME) @Target({FIELD,METHOD,ANNOTATION_TYPE}) @Documented public @interface IdentityDeclares a field (or a getter) of a class to constitute the identity of the corresponding class. Primarily used inAggregateRootandEntitytypes.- Since:
- 1.3
- See Also:
- Domain-Driven Design Reference (Evans) - Entities