Annotation Interface Table


Deprecated, for removal: This API element is subject to removal in a future version.
The options available here are all now offered by other newer and better-designed annotations in this package. This annotation will soon be removed, since it's very annoying to have two annotations named @Table.
Complementary information for a table declared using the Table, or SecondaryTable annotation. Usually used only for secondary tables.
Author:
Emmanuel Bernard
See Also:
  • Element Details

    • appliesTo

      String appliesTo
      Deprecated, for removal: This API element is subject to removal in a future version.
      The name of the targeted table.
    • indexes

      @Deprecated(since="6.0") Index[] indexes
      Indexes.
      Default:
      {}
    • checkConstraint

      @Deprecated(since="6.2") String checkConstraint
      Deprecated.
      use Check.
      A check constraint, written in native SQL.
      Default:
      ""
    • comment

      @Deprecated(since="6.2") String comment
      Deprecated.
      Specifies comment to add to the generated DDL for the table.
      Default:
      ""
    • foreignKey

      @Deprecated(since="6.0", forRemoval=true) ForeignKey foreignKey
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specifies a foreign key of a secondary table, which points back to the primary table.
      Default:
      @org.hibernate.annotations.ForeignKey(name="")
    • fetch

      Deprecated.
      This setting has no effect in Hibernate 6
      Default:
      JOIN
    • inverse

      @Deprecated(since="6.2") boolean inverse
      Deprecated.
      If enabled, Hibernate will never insert or update the columns of the secondary table.
      Default:
      false
    • optional

      @Deprecated(since="6.2") boolean optional
      Deprecated.
      If enabled, Hibernate will insert a row only if the columns of the secondary table would not all be null, and will always use an outer join to read the columns. Thus, by default, Hibernate avoids creating a row of null values.
      Default:
      true
    • sqlInsert

      @Deprecated(since="6.2") SQLInsert sqlInsert
      Deprecated.
      use SQLInsert.table() to specify the secondary table
      Defines a custom SQL insert statement.
      Default:
      @org.hibernate.annotations.SQLInsert(sql="")
    • sqlUpdate

      @Deprecated(since="6.2") SQLUpdate sqlUpdate
      Deprecated.
      use SQLInsert.table() to specify the secondary table
      Defines a custom SQL update statement.
      Default:
      @org.hibernate.annotations.SQLUpdate(sql="")
    • sqlDelete

      @Deprecated(since="6.2") SQLDelete sqlDelete
      Deprecated.
      use SQLInsert.table() to specify the secondary table
      Defines a custom SQL delete statement.
      Default:
      @org.hibernate.annotations.SQLDelete(sql="")