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