Package io.contextmap.annotations.entity
Annotation Type ContextSoftLink
-
@Target({FIELD,METHOD}) @Retention(RUNTIME) public @interface ContextSoftLink
Annotation to document and create softlink between entities. Either in the current component, or between components.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description StringcomponentUse this attribute in combination with entityName() to create a soft-link to an entity in another component.ClassentityUse this attribute to create a soft-link to an entity in the current component.StringentityNameUse this attribute in combination with component() to create a soft-link to an entity in another component.
-
-
-
Element Detail
-
entity
Class entity
Use this attribute to create a soft-link to an entity in the current component.- Returns:
- linked entity in current component
- Default:
- void.class
-
-
-
entityName
String entityName
Use this attribute in combination with component() to create a soft-link to an entity in another component. The simple name of the entity's class should be used.- Returns:
- name of the linked entity to other component
- Default:
- ""
-
-
-
component
String component
Use this attribute in combination with entityName() to create a soft-link to an entity in another component.- Returns:
- name of the other component
- Default:
- ""
-
-