Annotation Interface Table


@Target(TYPE) @Retention(RUNTIME) public @interface Table
Maps a Java class to a database table.

This annotation identifes the class as a Litebridge entity.

The entity needs to be registered with a Litebridge instance before use; either explicitly or automatically via an entity package scanner.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Specifies the name of the database table that the annotated class maps to.
  • Element Details

    • value

      String value
      Specifies the name of the database table that the annotated class maps to.

      This value is used in Object-Relational Mapping (ORM) to bind the entity class to a specific table for data persistence operations.

      Returns:
      The name of the database table.