Annotation Type Entity


@Retention(RUNTIME) @Target(TYPE) public @interface Entity
Annotation to mark a class as an entity. An entity is a persistent class which can be stored in an ObjectRepository.
Since:
4.0
Author:
Anindya Chatterjee
  • Element Details

    • value

      String value
      Name of the ObjectRepository. By default, the name would be the class name of the entity.
      Returns:
      the name
      Default:
      ""
    • indices

      Index[] indices
      A list of indices for the repository.
      Returns:
      the index definitions
      Default:
      {}