Annotation Interface Repository


@Documented @Retention(RUNTIME) @Target(TYPE) public @interface Repository
Defines a repository configuration for managing a specific entity in the database.

This annotation is used to specify the database details and the entity class that the repository will manage.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Defines the database engine used for the repository.
    Specifies the name of the database where the entity is stored.
    Class<? extends Entity>
    Specifies the entity class managed by this repository.
  • Element Details

    • databaseName

      String databaseName
      Specifies the name of the database where the entity is stored.
      Returns:
      The database name.
    • databaseEngine

      DatabaseEngine databaseEngine
      Defines the database engine used for the repository.
      Returns:
      The DatabaseEngine used by the repository.
    • entity

      Class<? extends Entity> entity
      Specifies the entity class managed by this repository.

      The entity must extend Entity to be recognized as a valid database table.

      Returns:
      The entity class associated with this repository.