Deprecated
for removal since 6.2.
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.
jakarta.persistence.Table ,
or jakarta.persistence.SecondaryTable annotation. Usually used only for secondary
tables.
jakarta.persistence.Table , jakarta.persistence.SecondaryTable
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | |
| public String | |
| public FetchMode | |
| public ForeignKey | foreignKey()
Deprecated
for removal since 6.0. use
Specifies a foreign key of a secondary table, which points back to the primary table.
jakarta.
|
| public Index[] | indexes()
Deprecated
since 6.0. use
Indexes.
jakarta. or
jakarta.
|
| public boolean | inverse()
Deprecated
since 6.2. use
If enabled, Hibernate will never insert or update the columns of the secondary table.
SecondaryRow#owned()
|
| public boolean | optional()
Deprecated
since 6.2. use
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.
SecondaryRow#optional()
|
| public SQLDelete | sqlDelete()
Deprecated
since 6.2. use
Defines a custom SQL delete statement.
SQLInsert#table() to specify the secondary table
|
| public SQLInsert | sqlInsert()
Deprecated
since 6.2. use
Defines a custom SQL insert statement.
SQLInsert#table() to specify the secondary table
|
| public SQLUpdate | sqlUpdate()
Deprecated
since 6.2. use
Defines a custom SQL update statement.
SQLInsert#table() to specify the secondary table
|
| appliesTo | back to summary |
|---|---|
| public String appliesTo() The name of the targeted table. | |
| checkConstraint | back to summary |
|---|---|
| public String checkConstraint()
A check constraint, written in native SQL.
| |
| comment | back to summary |
|---|---|
| public String comment()
Specifies comment to add to the generated DDL for the table.
| |
| fetch | back to summary |
|---|---|
| public FetchMode fetch()
Deprecated since 6.2. This setting has no effect in Hibernate 6
| |
| foreignKey | back to summary |
|---|---|
| public ForeignKey foreignKey()
Specifies a foreign key of a secondary table, which points back to the primary table. API Note Only relevant to secondary tables
| |
| indexes | back to summary |
|---|---|
| public Index[] indexes()
Deprecated since 6.0. use Indexes.
| |
| inverse | back to summary |
|---|---|
| public boolean inverse()
If enabled, Hibernate will never insert or update the columns of the secondary table. API Note Only relevant to secondary tables
| |
| optional | back to summary |
|---|---|
| public boolean optional()
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
| |
| sqlDelete | back to summary |
|---|---|
| public SQLDelete sqlDelete()
Defines a custom SQL delete statement. API Note Only relevant to secondary tables
| |
| sqlInsert | back to summary |
|---|---|
| public SQLInsert sqlInsert()
Defines a custom SQL insert statement. API Note Only relevant to secondary tables
| |
| sqlUpdate | back to summary |
|---|---|
| public SQLUpdate sqlUpdate()
Defines a custom SQL update statement. API Note Only relevant to secondary tables
| |