Annotation Interface DynamicLabels
@Retention(RUNTIME)
@Target(FIELD)
@Documented
@API(status=STABLE,
since="6.0")
public @interface DynamicLabels
This annotation can be used on a field of type
Collection<String>
. The content of
this field will be treated as dynamic or runtime managed labels. This means: All labels that are not statically
defined via the class hierarchy and the corresponding @Node
annotation are added to this list while
loading the entity and all values contained in the collection will be added to the nodes labels.
Labels not defined through the class hierarchy or the list of dynamic labels will be removed from the database when
@DynamicLabels
is used.
- Since:
- 6.0
- Author:
- Michael J. Simons