模块 org.redkale

注释类型 Table


  • @Target(TYPE)
    @Retention(RUNTIME)
    public @interface Table
    Specifies the primary table for the annotated entity. Additional tables may be specified using SecondaryTable or SecondaryTables annotation.

    If no Table annotation is specified for an entity class, the default values apply.

        Example:
    
        @Entity
        @Table(name="CUST", schema="RECORDS")
        public class Customer { ... }
     
    从以下版本开始:
    Java Persistence 1.0
    • 可选元素概要

      可选元素 
      修饰符和类型 可选元素 说明
      String catalog
      (Optional) The catalog of the table.
      String comment
      comment
      String name
      (Optional) The name of the table.
    • 元素详细资料

      • name

        String name
        (Optional) The name of the table.

        Defaults to the entity name.

        返回:
        String
        默认值:
        ""
      • catalog

        String catalog
        (Optional) The catalog of the table.

        Defaults to the default catalog.

        返回:
        String
        默认值:
        ""
      • comment

        String comment
        comment
        返回:
        String
        默认值:
        ""