Package org.hibernate.annotations
Annotation Interface Table
@Target(TYPE)
@Retention(RUNTIME)
@Repeatable(Tables.class)
@Deprecated(since="6.2",
forRemoval=true)
public @interface Table
Deprecated, for removal: This API element is subject to removal in a future version.
Complementary information for a table declared using the
Table
,
or SecondaryTable
annotation. Usually used only for secondary
tables.- See Also:
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionDeprecated.useCheck
.Deprecated.useComment
Deprecated.This setting has no effect in Hibernate 6Deprecated, for removal: This API element is subject to removal in a future version.Index[]
Deprecated.boolean
Deprecated.boolean
Deprecated.Deprecated.useSQLInsert.table()
to specify the secondary tableDeprecated.useSQLInsert.table()
to specify the secondary tableDeprecated.useSQLInsert.table()
to specify the secondary table
-
Element Details
-
appliesTo
String appliesToDeprecated, for removal: This API element is subject to removal in a future version.The name of the targeted table.
-
-
-
indexes
Deprecated.Indexes.- Default:
- {}
-
checkConstraint
Deprecated.useCheck
.A check constraint, written in native SQL.- Default:
- ""
-
comment
Deprecated.useComment
Specifies comment to add to the generated DDL for the table.- Default:
- ""
-
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.- API Note:
- Only relevant to secondary tables
- Default:
- @org.hibernate.annotations.ForeignKey(name="")
-
fetch
Deprecated.This setting has no effect in Hibernate 6- Default:
- JOIN
-
inverse
Deprecated.If enabled, Hibernate will never insert or update the columns of the secondary table.- API Note:
- Only relevant to secondary tables
- Default:
- false
-
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.- API Note:
- Only relevant to secondary tables
- Default:
- true
-
sqlInsert
Deprecated.useSQLInsert.table()
to specify the secondary tableDefines a custom SQL insert statement.- API Note:
- Only relevant to secondary tables
- Default:
- @org.hibernate.annotations.SQLInsert(sql="")
-
sqlUpdate
Deprecated.useSQLInsert.table()
to specify the secondary tableDefines a custom SQL update statement.- API Note:
- Only relevant to secondary tables
- Default:
- @org.hibernate.annotations.SQLUpdate(sql="")
-
sqlDelete
Deprecated.useSQLInsert.table()
to specify the secondary tableDefines a custom SQL delete statement.- API Note:
- Only relevant to secondary tables
- Default:
- @org.hibernate.annotations.SQLDelete(sql="")
-
@Table
.