Annotation Interface EntityAnnotation


@Target(TYPE) @Retention(RUNTIME) public @interface EntityAnnotation
Annotation to mark classes related to entity mechanics.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Gets the unique identifier for the entity.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Gets the groups that the entity belongs to.
  • Element Details

    • id

      String id
      Gets the unique identifier for the entity.
      Returns:
      A string representing the unique identifier for the entity.
    • groups

      String[] groups
      Gets the groups that the entity belongs to.
      Returns:
      An array of strings representing the groups that the entity belongs to.
      Default:
      {}