Package org.seedstack.business.domain
Annotation Type Identity
-
@Documented @Retention(RUNTIME) @Target({FIELD,ANNOTATION_TYPE}) public @interface Identity
This annotation marks the field of an entity as its identity. A generation strategy can be specified with an identity generator.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Class<? extends IdentityGenerator>generator
-
-
-
Element Detail
-
generator
Class<? extends IdentityGenerator> generator
- Returns:
- the identity generator used to generate identity if any.
- Default:
- org.seedstack.business.domain.IdentityGenerator.class
-
-